Hibernate is going to automatically create the tables based on which POJOs are 
declared as @Entity beans and the subsequent annotations to the getter methods 
in that Entity bean.    Hibernate will do this as long as your enforce a 
create-drop policy, or update I believe.

Entity beans must have an id field denoted by @Id and typically 
@GeneratedValue, other than that, every other field is created as a column 
mapped by the Type of the field, unless otherwise specified.

If you already have the database structure set up in the database, you could 
also mirror the structure in your Entity beans (given it the db structure isn't 
too difficult, or you're really good in sql).

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

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

Reply via email to