[jboss-user] [JBoss Seam] - Re: Error during model data update
jason_rency
do-not-reply at jboss.com
Mon Jul 24 05:00:37 EDT 2006
my entity bean: RegUser.java
package src.reg.server;
|
| // Generated 17-Jul-2006 10:43:29 by Hibernate Tools 3.1.0.beta5
|
| import static org.jboss.seam.ScopeType.SESSION;
|
| import javax.persistence.Column;
| import javax.persistence.Entity;
| import javax.persistence.Id;
| import javax.persistence.Table;
|
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.annotations.Scope;
|
| /**
| * RegUser generated by hbm2java
| */
| @Entity
| @Name("reguser")
| @Scope(SESSION)
| @Table(name = "REG_USER", schema = "PUBLIC", uniqueConstraints = {})
| public class RegUser implements java.io.Serializable {
|
| private static final long serialVersionUID = -595498938312392108L;
|
| private String UId;
|
| private int pinHash;
|
| private String EMail;
|
| private String phoneNumber;
|
|
| // Constructors
|
| /** default constructor */
| public RegUser() {
| }
|
| /** minimal constructor */
| public RegUser(String UId, int pinHash, String tokenKey, int tokenSta,
| String EMail) {
| this.UId = UId;
| this.pinHash = pinHash;
| this.EMail = EMail;
| }
|
| /** full constructor */
| public RegUser(String UId, int pinHash, String tokenKey, int tokenSta,
| String EMail, String phoneNumber) {
| this.UId = UId;
| this.pinHash = pinHash;
| this.EMail = EMail;
| this.phoneNumber = phoneNumber;
| }
|
| // Property accessors
| @Id
| @Column(name = "U_ID", unique = true, nullable = false, insertable = true, updatable = false, length = 10)
| public String getUId() {
| return this.UId;
| }
|
| public void setUId(String UId) {
| this.UId = UId;
| }
|
| @Column(name = "PIN_HASH", unique = false, nullable = false, insertable = true, updatable = true)
| public int getPinHash() {
| return this.pinHash;
| }
|
| public void setPinHash(int pinHash) {
| this.pinHash = pinHash;
| }
|
|
| @Column(name = "E_MAIL", unique = false, nullable = false, insertable = true, updatable = false, length = 20)
| public String getEMail() {
| return this.EMail;
| }
|
| public void setEMail(String EMail) {
| this.EMail = EMail;
| }
|
| @Column(name = "PHONE_NUMBER", unique = false, nullable = true, insertable = true, updatable = false, length = 15)
| public String getPhoneNumber() {
| return this.phoneNumber;
| }
|
| public void setPhoneNumber(String phoneNumber) {
| this.phoneNumber = phoneNumber;
| }
|
| }
|
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960271#3960271
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960271
More information about the jboss-user
mailing list