• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can EJB3 generate DDL?  RSS feed

 
Timotius Pamungkas
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

I'm just learning EJB3, and I want to know, can my entity classes used to generate DDL?
I've tried to find article or tutorial about this, including the steps to generate DDL from entity classes, but can't find any. Can anyone help me? Do I need another jar other than glassfish-persistence jar?

Thanks
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Timotius,
Some JPA implementations can generate DDL. You specify the property in your persistence.xml. For example, TopLink does so using the vendor specific property "toplink.ddl-generation". Hibernate does so as well.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!