"petemuir" wrote : Please show the User class

hi, here is User class:


  | package com.seam.dto;
  | 
  | import javax.persistence.Column;
  | import javax.persistence.Entity;
  | import javax.persistence.Id;
  | import javax.persistence.Table;
  | 
  | import static org.jboss.seam.ScopeType.SESSION;
  | 
  | import org.hibernate.annotations.AccessType;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Scope;
  |  
  | 
  | @Entity
  | @Name("user")
  | @Table(name="user")
  | @Scope(SESSION)
  | @AccessType("field")
  | public class User {
  |     
  |     @Id 
  |     @Column(name="username")
  |     String username;
  |     @Column(name="password")
  |     String password;
  |     @Column(name="full_name")
  |     String fullName;
  |     
  |     public String getFullName() {
  |             return fullName;
  |     }
  |     public void setFullName(String fullName) {
  |             this.fullName = fullName;
  |     }
  |     public String getPassword() {
  |             return password;
  |     }
  |     public void setPassword(String password) {
  |             this.password = password;
  |     }
  |     public String getUsername() {
  |             return username;
  |     }
  |     public void setUsername(String username) {
  |             this.username = username;
  |     }
  |     
  |     
  | }
  | 
  | 

and components.xml :

  | <components>
  |     <component name="org.jboss.seam.core.init">
  |             <!-- JNDI name pattern for JBoss EJB 3.0 -->
  |             <property name="jndiPattern">#{ejbName}/local</property>
  |     </component>
  | </components>
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977122#3977122

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977122
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to