Class Address

  • All Implemented Interfaces:
    Serializable

    @Entity
    public class Address
    extends Object
    implements Serializable
    This class provides a thin example of how to setup an Address business object class for the project. Only a few fields are mapped and we will make full use of JPA annotations over an orm.xml file in this example.
    See Also:
    Serialized Form
    • Constructor Detail

      • Address

        public Address()
      • Address

        public Address​(long id)
      • Address

        public Address​(long id,
                       String city)
    • Method Detail

      • getId

        public long getId()
      • setId

        private void setId​(long id)
      • getCity

        public String getCity()
      • setCity

        public void setCity​(String city)