[jboss-user] [JBoss Seam] - Re: How to use @Id @GeneratedValue(strategy=GenerationType.A
hstang
do-not-reply at jboss.com
Thu Mar 1 13:19:01 EST 2007
"tonylmai" wrote :
|
| Can I create a new object of this class with just the message and let Hibernate create the id?
|
Yes
"tonylmai" wrote :
| In the database end, do I create the table for this entity with column id declared as bigint?
|
Hibernate does this automatically for you if you set "hibernate.hbm2ddl.auto" property to "create"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024418#4024418
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024418
More information about the jboss-user
mailing list