[jboss-user] [JBoss Seam] - Re: Could not initialize class org.hibernate.intercept.LazyP
ebu
do-not-reply at jboss.com
Mon Oct 22 01:40:01 EDT 2007
here is it:
|
| @Entity
| @NamedQueries({
| @NamedQuery(name = Property.ALL_PROPERTIES_COUNT, query="select count(p.id) from Property as p"),
| @NamedQuery(name = Property.ALL_PROPERTIES, query="select p from Property as p order by p.name")
| })
| public class Property {
| public final static String ALL_PROPERTIES_COUNT = "ALL_PROPERTIES_COUNT";
| public static final String ALL_PROPERTIES = "ALL_PROPERTIES";
|
|
| @Id
| @GeneratedValue
| private Long id;
|
| @NotNull
| private String name;
|
| private Type type;
|
| public Long getId() {
| return id;
| }
|
| public void setId(Long id) {
| this.id = id;
| }
|
| public String getName() {
| return name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
| public Type getType() {
| return type;
| }
|
| public void setType(Type type) {
| this.type = type;
| }
|
| @Override
| public String toString() {
| return this.id != null ? this.id.toString() : "New";
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4097315#4097315
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4097315
More information about the jboss-user
mailing list