Compare Revisions
Last modification
- Rev 21 2010-12-19 14:53:57
- Author: moos
- Log message:
all the DAOs and updated hibernate.cfg.xml
/trunk/src/ch/ffhs/webE/domain/ObjectType.java |
File deleted |
|
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-text/plain |
\ No newline at end of property |
Index: domain/History.java |
=================================================================== |
--- domain/History.java (revision 21) |
+++ domain/History.java (nonexistent) |
@@ -1,122 +0,0 @@ |
-package ch.ffhs.webE.domain; |
- |
-// Generated 19.12.2010 14:46:08 by Hibernate Tools 3.4.0.Beta1 |
- |
-import java.util.Date; |
-import javax.persistence.Column; |
-import javax.persistence.Entity; |
-import javax.persistence.FetchType; |
-import javax.persistence.GeneratedValue; |
-import static javax.persistence.GenerationType.IDENTITY; |
-import javax.persistence.Id; |
-import javax.persistence.JoinColumn; |
-import javax.persistence.ManyToOne; |
-import javax.persistence.Table; |
-import javax.persistence.Temporal; |
-import javax.persistence.TemporalType; |
- |
-/** |
- * History generated by hbm2java |
- */ |
-@Entity |
-@Table(name = "history", catalog = "webengineering") |
-public class History implements java.io.Serializable { |
- |
- private Integer id; |
- private User user; |
- private ActionType actionType; |
- private Object object; |
- private String value; |
- private String comment; |
- private Date date; |
- |
- public History() { |
- } |
- |
- public History(User user, ActionType actionType, Object object, Date date) { |
- this.user = user; |
- this.actionType = actionType; |
- this.object = object; |
- this.date = date; |
- } |
- |
- public History(User user, ActionType actionType, Object object, |
- String value, String comment, Date date) { |
- this.user = user; |
- this.actionType = actionType; |
- this.object = object; |
- this.value = value; |
- this.comment = comment; |
- this.date = date; |
- } |
- |
- @Id |
- @GeneratedValue(strategy = IDENTITY) |
- @Column(name = "id", unique = true, nullable = false) |
- public Integer getId() { |
- return this.id; |
- } |
- |
- public void setId(Integer id) { |
- this.id = id; |
- } |
- |
- @ManyToOne(fetch = FetchType.LAZY) |
- @JoinColumn(name = "user_id", nullable = false) |
- public User getUser() { |
- return this.user; |
- } |
- |
- public void setUser(User user) { |
- this.user = user; |
- } |
- |
- @ManyToOne(fetch = FetchType.LAZY) |
- @JoinColumn(name = "action_type_id", nullable = false) |
- public ActionType getActionType() { |
- return this.actionType; |
- } |
- |
- public void setActionType(ActionType actionType) { |
- this.actionType = actionType; |
- } |
- |
- @ManyToOne(fetch = FetchType.LAZY) |
- @JoinColumn(name = "objects_id", nullable = false) |
- public Object getObject() { |
- return this.object; |
- } |
- |
- public void setObject(Object object) { |
- this.object = object; |
- } |
- |
- @Column(name = "value", length = 45) |
- public String getValue() { |
- return this.value; |
- } |
- |
- public void setValue(String value) { |
- this.value = value; |
- } |
- |
- @Column(name = "comment") |
- public String getComment() { |
- return this.comment; |
- } |
- |
- public void setComment(String comment) { |
- this.comment = comment; |
- } |
- |
- @Temporal(TemporalType.TIMESTAMP) |
- @Column(name = "date", nullable = false, length = 19) |
- public Date getDate() { |
- return this.date; |
- } |
- |
- public void setDate(Date date) { |
- this.date = date; |
- } |
- |
-} |
/domain/History.java |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-text/plain |
\ No newline at end of property |
Index: domain/ActionType.java |
=================================================================== |
--- domain/ActionType.java (revision 21) |
+++ domain/ActionType.java (nonexistent) |
@@ -1,64 +0,0 @@ |
-package ch.ffhs.webE.domain; |
- |
-// Generated 19.12.2010 14:46:08 by Hibernate Tools 3.4.0.Beta1 |
- |
-import java.util.HashSet; |
-import java.util.Set; |
-import javax.persistence.Column; |
-import javax.persistence.Entity; |
-import javax.persistence.FetchType; |
-import javax.persistence.GeneratedValue; |
-import static javax.persistence.GenerationType.IDENTITY; |
-import javax.persistence.Id; |
-import javax.persistence.OneToMany; |
-import javax.persistence.Table; |
- |
-/** |
- * ActionType generated by hbm2java |
- */ |
-@Entity |
-@Table(name = "action_type", catalog = "webengineering") |
-public class ActionType implements java.io.Serializable { |
- |
- private Integer id; |
- private String name; |
- private Set<History> histories = new HashSet<History>(0); |
- |
- public ActionType() { |
- } |
- |
- public ActionType(String name, Set<History> histories) { |
- this.name = name; |
- this.histories = histories; |
- } |
- |
- @Id |
- @GeneratedValue(strategy = IDENTITY) |
- @Column(name = "id", unique = true, nullable = false) |
- public Integer getId() { |
- return this.id; |
- } |
- |
- public void setId(Integer id) { |
- this.id = id; |
- } |
- |
- @Column(name = "name", length = 45) |
- public String getName() { |
- return this.name; |
- } |
- |
- public void setName(String name) { |
- this.name = name; |
- } |
- |
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "actionType") |
- public Set<History> getHistories() { |
- return this.histories; |
- } |
- |
- public void setHistories(Set<History> histories) { |
- this.histories = histories; |
- } |
- |
-} |
/domain/ActionType.java |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-text/plain |
\ No newline at end of property |
Index: domain/RelationshipType.java |
=================================================================== |
--- domain/RelationshipType.java (revision 21) |
+++ domain/RelationshipType.java (nonexistent) |
@@ -1,82 +0,0 @@ |
-package ch.ffhs.webE.domain; |
- |
-// Generated 19.12.2010 14:46:08 by Hibernate Tools 3.4.0.Beta1 |
- |
-import java.util.HashSet; |
-import java.util.Set; |
-import javax.persistence.Column; |
-import javax.persistence.Entity; |
-import javax.persistence.FetchType; |
-import javax.persistence.GeneratedValue; |
-import static javax.persistence.GenerationType.IDENTITY; |
-import javax.persistence.Id; |
-import javax.persistence.OneToMany; |
-import javax.persistence.Table; |
-import javax.persistence.UniqueConstraint; |
- |
-/** |
- * RelationshipType generated by hbm2java |
- */ |
-@Entity |
-@Table(name = "relationship_type", catalog = "webengineering", uniqueConstraints = @UniqueConstraint(columnNames = "name_from")) |
-public class RelationshipType implements java.io.Serializable { |
- |
- private Integer relationshipId; |
- private String nameFrom; |
- private String nameTo; |
- private Set<Relationship> relationships = new HashSet<Relationship>(0); |
- |
- public RelationshipType() { |
- } |
- |
- public RelationshipType(String nameFrom, String nameTo) { |
- this.nameFrom = nameFrom; |
- this.nameTo = nameTo; |
- } |
- |
- public RelationshipType(String nameFrom, String nameTo, |
- Set<Relationship> relationships) { |
- this.nameFrom = nameFrom; |
- this.nameTo = nameTo; |
- this.relationships = relationships; |
- } |
- |
- @Id |
- @GeneratedValue(strategy = IDENTITY) |
- @Column(name = "relationship_id", unique = true, nullable = false) |
- public Integer getRelationshipId() { |
- return this.relationshipId; |
- } |
- |
- public void setRelationshipId(Integer relationshipId) { |
- this.relationshipId = relationshipId; |
- } |
- |
- @Column(name = "name_from", unique = true, nullable = false) |
- public String getNameFrom() { |
- return this.nameFrom; |
- } |
- |
- public void setNameFrom(String nameFrom) { |
- this.nameFrom = nameFrom; |
- } |
- |
- @Column(name = "name_to", nullable = false) |
- public String getNameTo() { |
- return this.nameTo; |
- } |
- |
- public void setNameTo(String nameTo) { |
- this.nameTo = nameTo; |
- } |
- |
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "relationshipType") |
- public Set<Relationship> getRelationships() { |
- return this.relationships; |
- } |
- |
- public void setRelationships(Set<Relationship> relationships) { |
- this.relationships = relationships; |
- } |
- |
-} |
/domain/RelationshipType.java |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-text/plain |
\ No newline at end of property |
Index: domain/Object.java |
=================================================================== |
--- domain/Object.java (revision 21) |
+++ domain/Object.java (nonexistent) |
@@ -1,160 +0,0 @@ |
-package ch.ffhs.webE.domain; |
- |
-// Generated 19.12.2010 14:46:08 by Hibernate Tools 3.4.0.Beta1 |
- |
-import java.util.Date; |
-import java.util.HashSet; |
-import java.util.Set; |
-import javax.persistence.Column; |
-import javax.persistence.Entity; |
-import javax.persistence.FetchType; |
-import javax.persistence.GeneratedValue; |
-import static javax.persistence.GenerationType.IDENTITY; |
-import javax.persistence.Id; |
-import javax.persistence.JoinColumn; |
-import javax.persistence.ManyToOne; |
-import javax.persistence.OneToMany; |
-import javax.persistence.OneToOne; |
-import javax.persistence.Table; |
-import javax.persistence.Temporal; |
-import javax.persistence.TemporalType; |
- |
-/** |
- * Object generated by hbm2java |
- */ |
-@Entity |
-@Table(name = "object", catalog = "webengineering") |
-public class Object implements java.io.Serializable { |
- |
- private Integer id; |
- private User userByEditorId; |
- private ObjectType objectType; |
- private User userByOwnerId; |
- private Date locked; |
- private Date modified; |
- private Boolean deleted; |
- private Term term; |
- private Set<History> histories = new HashSet<History>(0); |
- private Relationship relationship; |
- |
- public Object() { |
- } |
- |
- public Object(User userByEditorId, ObjectType objectType, User userByOwnerId) { |
- this.userByEditorId = userByEditorId; |
- this.objectType = objectType; |
- this.userByOwnerId = userByOwnerId; |
- } |
- |
- public Object(User userByEditorId, ObjectType objectType, |
- User userByOwnerId, Date locked, Date modified, Boolean deleted, |
- Term term, Set<History> histories, Relationship relationship) { |
- this.userByEditorId = userByEditorId; |
- this.objectType = objectType; |
- this.userByOwnerId = userByOwnerId; |
- this.locked = locked; |
- this.modified = modified; |
- this.deleted = deleted; |
- this.term = term; |
- this.histories = histories; |
- this.relationship = relationship; |
- } |
- |
- @Id |
- @GeneratedValue(strategy = IDENTITY) |
- @Column(name = "id", unique = true, nullable = false) |
- public Integer getId() { |
- return this.id; |
- } |
- |
- public void setId(Integer id) { |
- this.id = id; |
- } |
- |
- @ManyToOne(fetch = FetchType.LAZY) |
- @JoinColumn(name = "editor_id", nullable = false) |
- public User getUserByEditorId() { |
- return this.userByEditorId; |
- } |
- |
- public void setUserByEditorId(User userByEditorId) { |
- this.userByEditorId = userByEditorId; |
- } |
- |
- @ManyToOne(fetch = FetchType.LAZY) |
- @JoinColumn(name = "object_type_id", nullable = false) |
- public ObjectType getObjectType() { |
- return this.objectType; |
- } |
- |
- public void setObjectType(ObjectType objectType) { |
- this.objectType = objectType; |
- } |
- |
- @ManyToOne(fetch = FetchType.LAZY) |
- @JoinColumn(name = "owner_id", nullable = false) |
- public User getUserByOwnerId() { |
- return this.userByOwnerId; |
- } |
- |
- public void setUserByOwnerId(User userByOwnerId) { |
- this.userByOwnerId = userByOwnerId; |
- } |
- |
- @Temporal(TemporalType.TIMESTAMP) |
- @Column(name = "locked", length = 19) |
- public Date getLocked() { |
- return this.locked; |
- } |
- |
- public void setLocked(Date locked) { |
- this.locked = locked; |
- } |
- |
- @Temporal(TemporalType.TIMESTAMP) |
- @Column(name = "modified", length = 19) |
- public Date getModified() { |
- return this.modified; |
- } |
- |
- public void setModified(Date modified) { |
- this.modified = modified; |
- } |
- |
- @Column(name = "deleted") |
- public Boolean getDeleted() { |
- return this.deleted; |
- } |
- |
- public void setDeleted(Boolean deleted) { |
- this.deleted = deleted; |
- } |
- |
- @OneToOne(fetch = FetchType.LAZY, mappedBy = "object") |
- public Term getTerm() { |
- return this.term; |
- } |
- |
- public void setTerm(Term term) { |
- this.term = term; |
- } |
- |
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "object") |
- public Set<History> getHistories() { |
- return this.histories; |
- } |
- |
- public void setHistories(Set<History> histories) { |
- this.histories = histories; |
- } |
- |
- @OneToOne(fetch = FetchType.LAZY, mappedBy = "object") |
- public Relationship getRelationship() { |
- return this.relationship; |
- } |
- |
- public void setRelationship(Relationship relationship) { |
- this.relationship = relationship; |
- } |
- |
-} |
/domain/Object.java |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-text/plain |
\ No newline at end of property |
Index: domain/Relationship.java |
=================================================================== |
--- domain/Relationship.java (revision 21) |
+++ domain/Relationship.java (nonexistent) |
@@ -1,96 +0,0 @@ |
-package ch.ffhs.webE.domain; |
- |
-// Generated 19.12.2010 14:46:08 by Hibernate Tools 3.4.0.Beta1 |
- |
-import javax.persistence.Column; |
-import javax.persistence.Entity; |
-import javax.persistence.FetchType; |
-import javax.persistence.GeneratedValue; |
-import javax.persistence.Id; |
-import javax.persistence.JoinColumn; |
-import javax.persistence.ManyToOne; |
-import javax.persistence.OneToOne; |
-import javax.persistence.PrimaryKeyJoinColumn; |
-import javax.persistence.Table; |
-import javax.persistence.UniqueConstraint; |
-import org.hibernate.annotations.GenericGenerator; |
-import org.hibernate.annotations.Parameter; |
- |
-/** |
- * Relationship generated by hbm2java |
- */ |
-@Entity |
-@Table(name = "relationship", catalog = "webengineering", uniqueConstraints = @UniqueConstraint(columnNames = { |
- "term_from", "term_to", "type" })) |
-public class Relationship implements java.io.Serializable { |
- |
- private int objectId; |
- private Term termByTermTo; |
- private Object object; |
- private RelationshipType relationshipType; |
- private Term termByTermFrom; |
- |
- public Relationship() { |
- } |
- |
- public Relationship(Term termByTermTo, Object object, |
- RelationshipType relationshipType, Term termByTermFrom) { |
- this.termByTermTo = termByTermTo; |
- this.object = object; |
- this.relationshipType = relationshipType; |
- this.termByTermFrom = termByTermFrom; |
- } |
- |
- @GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "object")) |
- @Id |
- @GeneratedValue(generator = "generator") |
- @Column(name = "object_id", unique = true, nullable = false) |
- public int getObjectId() { |
- return this.objectId; |
- } |
- |
- public void setObjectId(int objectId) { |
- this.objectId = objectId; |
- } |
- |
- @ManyToOne(fetch = FetchType.LAZY) |
- @JoinColumn(name = "term_to", nullable = false) |
- public Term getTermByTermTo() { |
- return this.termByTermTo; |
- } |
- |
- public void setTermByTermTo(Term termByTermTo) { |
- this.termByTermTo = termByTermTo; |
- } |
- |
- @OneToOne(fetch = FetchType.LAZY) |
- @PrimaryKeyJoinColumn |
- public Object getObject() { |
- return this.object; |
- } |
- |
- public void setObject(Object object) { |
- this.object = object; |
- } |
- |
- @ManyToOne(fetch = FetchType.LAZY) |
- @JoinColumn(name = "type", nullable = false) |
- public RelationshipType getRelationshipType() { |
- return this.relationshipType; |
- } |
- |
- public void setRelationshipType(RelationshipType relationshipType) { |
- this.relationshipType = relationshipType; |
- } |
- |
- @ManyToOne(fetch = FetchType.LAZY) |
- @JoinColumn(name = "term_from", nullable = false) |
- public Term getTermByTermFrom() { |
- return this.termByTermFrom; |
- } |
- |
- public void setTermByTermFrom(Term termByTermFrom) { |
- this.termByTermFrom = termByTermFrom; |
- } |
- |
-} |
/domain/Relationship.java |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-text/plain |
\ No newline at end of property |
Index: domain/Term.java |
=================================================================== |
--- domain/Term.java (revision 21) |
+++ domain/Term.java (nonexistent) |
@@ -1,102 +0,0 @@ |
-package ch.ffhs.webE.domain; |
- |
-// Generated 19.12.2010 14:46:08 by Hibernate Tools 3.4.0.Beta1 |
- |
-import java.util.HashSet; |
-import java.util.Set; |
-import javax.persistence.Column; |
-import javax.persistence.Entity; |
-import javax.persistence.FetchType; |
-import javax.persistence.GeneratedValue; |
-import javax.persistence.Id; |
-import javax.persistence.OneToMany; |
-import javax.persistence.OneToOne; |
-import javax.persistence.PrimaryKeyJoinColumn; |
-import javax.persistence.Table; |
-import javax.persistence.UniqueConstraint; |
-import org.hibernate.annotations.GenericGenerator; |
-import org.hibernate.annotations.Parameter; |
- |
-/** |
- * Term generated by hbm2java |
- */ |
-@Entity |
-@Table(name = "term", catalog = "webengineering", uniqueConstraints = @UniqueConstraint(columnNames = "name")) |
-public class Term implements java.io.Serializable { |
- |
- private int objectId; |
- private Object object; |
- private String name; |
- private Set<Relationship> relationshipsForTermTo = new HashSet<Relationship>( |
- 0); |
- private Set<Relationship> relationshipsForTermFrom = new HashSet<Relationship>( |
- 0); |
- |
- public Term() { |
- } |
- |
- public Term(Object object) { |
- this.object = object; |
- } |
- |
- public Term(Object object, String name, |
- Set<Relationship> relationshipsForTermTo, |
- Set<Relationship> relationshipsForTermFrom) { |
- this.object = object; |
- this.name = name; |
- this.relationshipsForTermTo = relationshipsForTermTo; |
- this.relationshipsForTermFrom = relationshipsForTermFrom; |
- } |
- |
- @GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "object")) |
- @Id |
- @GeneratedValue(generator = "generator") |
- @Column(name = "object_id", unique = true, nullable = false) |
- public int getObjectId() { |
- return this.objectId; |
- } |
- |
- public void setObjectId(int objectId) { |
- this.objectId = objectId; |
- } |
- |
- @OneToOne(fetch = FetchType.LAZY) |
- @PrimaryKeyJoinColumn |
- public Object getObject() { |
- return this.object; |
- } |
- |
- public void setObject(Object object) { |
- this.object = object; |
- } |
- |
- @Column(name = "name", unique = true) |
- public String getName() { |
- return this.name; |
- } |
- |
- public void setName(String name) { |
- this.name = name; |
- } |
- |
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "termByTermTo") |
- public Set<Relationship> getRelationshipsForTermTo() { |
- return this.relationshipsForTermTo; |
- } |
- |
- public void setRelationshipsForTermTo( |
- Set<Relationship> relationshipsForTermTo) { |
- this.relationshipsForTermTo = relationshipsForTermTo; |
- } |
- |
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "termByTermFrom") |
- public Set<Relationship> getRelationshipsForTermFrom() { |
- return this.relationshipsForTermFrom; |
- } |
- |
- public void setRelationshipsForTermFrom( |
- Set<Relationship> relationshipsForTermFrom) { |
- this.relationshipsForTermFrom = relationshipsForTermFrom; |
- } |
- |
-} |
/domain/Term.java |
Property changes: |
Deleted: svn:mime-type |
## -1 +0,0 ## |
-text/plain |
\ No newline at end of property |
Index: domain/User.java |
=================================================================== |
--- domain/User.java (revision 21) |
+++ domain/User.java (revision 20) |
@@ -1,139 +1,71 @@ |
package ch.ffhs.webE.domain; |
-// Generated 19.12.2010 14:46:08 by Hibernate Tools 3.4.0.Beta1 |
- |
-import java.util.HashSet; |
-import java.util.Set; |
import javax.persistence.Column; |
import javax.persistence.Entity; |
-import javax.persistence.FetchType; |
import javax.persistence.GeneratedValue; |
-import static javax.persistence.GenerationType.IDENTITY; |
import javax.persistence.Id; |
-import javax.persistence.OneToMany; |
import javax.persistence.Table; |
-import javax.persistence.UniqueConstraint; |
|
-/** |
- * User generated by hbm2java |
- */ |
@Entity |
-@Table(name = "user", catalog = "webengineering", uniqueConstraints = @UniqueConstraint(columnNames = "username")) |
-public class User implements java.io.Serializable { |
+@Table(name="user") |
+public class User { |
|
- private Integer id; |
+ |
+ private int id; |
private String username; |
private String password; |
+ |
private String firstname; |
private String lastname; |
private boolean admin; |
- private Set<Object> objectsForOwnerId = new HashSet<Object>(0); |
- private Set<Object> objectsForEditorId = new HashSet<Object>(0); |
- private Set<History> histories = new HashSet<History>(0); |
|
- public User() { |
- } |
- |
- public User(String username, String password, boolean admin) { |
- this.username = username; |
- this.password = password; |
- this.admin = admin; |
- } |
- |
- public User(String username, String password, String firstname, |
- String lastname, boolean admin, Set<Object> objectsForOwnerId, |
- Set<Object> objectsForEditorId, Set<History> histories) { |
- this.username = username; |
- this.password = password; |
- this.firstname = firstname; |
- this.lastname = lastname; |
- this.admin = admin; |
- this.objectsForOwnerId = objectsForOwnerId; |
- this.objectsForEditorId = objectsForEditorId; |
- this.histories = histories; |
- } |
- |
@Id |
- @GeneratedValue(strategy = IDENTITY) |
- @Column(name = "id", unique = true, nullable = false) |
- public Integer getId() { |
- return this.id; |
+ @GeneratedValue |
+ @Column(name="id") |
+ public int getId() { |
+ return id; |
} |
- |
- public void setId(Integer id) { |
+ public void setId(int id) { |
this.id = id; |
} |
|
- @Column(name = "username", unique = true, nullable = false) |
+ @Column(name="username") |
public String getUsername() { |
- return this.username; |
+ return username; |
} |
- |
public void setUsername(String username) { |
this.username = username; |
} |
|
- @Column(name = "password", nullable = false, length = 32) |
- public String getPassword() { |
- return this.password; |
- } |
- |
- public void setPassword(String password) { |
- this.password = password; |
- } |
- |
- @Column(name = "firstname", length = 45) |
- public String getFirstname() { |
- return this.firstname; |
- } |
- |
- public void setFirstname(String firstname) { |
- this.firstname = firstname; |
- } |
- |
- @Column(name = "lastname", length = 45) |
+ @Column(name="lastname") |
public String getLastname() { |
- return this.lastname; |
+ return lastname; |
} |
- |
public void setLastname(String lastname) { |
this.lastname = lastname; |
} |
|
- @Column(name = "admin", nullable = false) |
+ @Column(name="admin") |
public boolean isAdmin() { |
- return this.admin; |
+ return admin; |
} |
- |
public void setAdmin(boolean admin) { |
this.admin = admin; |
} |
|
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "userByOwnerId") |
- public Set<Object> getObjectsForOwnerId() { |
- return this.objectsForOwnerId; |
+ @Column(name="firstname") |
+ public void setFirstname(String firstname) { |
+ this.firstname = firstname; |
} |
- |
- public void setObjectsForOwnerId(Set<Object> objectsForOwnerId) { |
- this.objectsForOwnerId = objectsForOwnerId; |
+ public String getFirstname() { |
+ return firstname; |
} |
|
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "userByEditorId") |
- public Set<Object> getObjectsForEditorId() { |
- return this.objectsForEditorId; |
+ @Column(name="password") |
+ public String getPassword() { |
+ return password; |
} |
- |
- public void setObjectsForEditorId(Set<Object> objectsForEditorId) { |
- this.objectsForEditorId = objectsForEditorId; |
+ public void setPassword(String password) { |
+ this.password = password; |
} |
- |
- @OneToMany(fetch = FetchType.LAZY, mappedBy = "user") |
- public Set<History> getHistories() { |
- return this.histories; |
} |
- |
- public void setHistories(Set<History> histories) { |
- this.histories = histories; |
- } |
- |
-} |