Class AggregateVersionXmlAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<Integer,org.fuin.ddd4j.core.AggregateVersion>
org.fuin.ddd4j.jaxb.AggregateVersionXmlAdapter

@ThreadSafe public final class AggregateVersionXmlAdapter extends jakarta.xml.bind.annotation.adapters.XmlAdapter<Integer,org.fuin.ddd4j.core.AggregateVersion>
Converts an aggregate version into an integer and back.
  • Constructor Details

    • AggregateVersionXmlAdapter

      public AggregateVersionXmlAdapter()
  • Method Details

    • unmarshal

      public org.fuin.ddd4j.core.AggregateVersion unmarshal(Integer value) throws Exception
      Specified by:
      unmarshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<Integer,org.fuin.ddd4j.core.AggregateVersion>
      Throws:
      Exception
    • marshal

      public Integer marshal(org.fuin.ddd4j.core.AggregateVersion version) throws Exception
      Specified by:
      marshal in class jakarta.xml.bind.annotation.adapters.XmlAdapter<Integer,org.fuin.ddd4j.core.AggregateVersion>
      Throws:
      Exception