- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
- @Column(name="id")
- private int id;
-
- @Column(name="name", nullable=false)
- @OrderBy("asc")
- private String name;
-
- @Column(name="prefixlist")
- private String prefixList;
-
-
- @Column(name="description")
- private String description;
-
- public AddressGroup() {
- //An empty constructor
- }
- public AddressGroup(String string, String userid) {
- this(domain);
-
- }
- public AddressGroup(String domain) {
- //An empty constructor
- }
-
- @PrePersist
- public void prePersist() {
- //An empty function
- }
- @PreUpdate
- public void preUpdate() {
- //An empty function
- }
-
-
- public int getId() {
- return this.id;
- }
+/**
+ * The Class AddressGroup is a JPA class for address groups.
+ */
+@Entity
+@Table(name = "AddressGroup")
+@NamedQuery(name = "AddressGroup.findAll", query = "SELECT e FROM AddressGroup e ")