Class Customer

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class Customer
    extends java.lang.Object
    implements java.io.Serializable
    A persistent entity represents a Customer.
    Persistent Identity: auto-generated identity.
    Mapping:
    Design Notes: No setter for identity value.
    Author:
    Pinaki Poddar
    See Also:
    Serialized Form
    • Constructor Detail

      • Customer

        public Customer()
    • Method Detail

      • getId

        public long getId()
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getEmail

        public java.lang.String getEmail()
      • setEmail

        public void setEmail​(java.lang.String email)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getVersion

        public int getVersion()