History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: EJB-80
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Vance Karimi
Reporter: Len Takeuchi
Votes: (View)
Watchers: (View)
Operations

If you were logged in you would be able to see more operations.
EJB Cartridge

Generate DB Schema Creation File with EJB Cartridge

Created: 15/Aug/07 07:02 PM   Updated: 06/Sep/07 06:46 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description   
EJB3 cartridge currently support creation of the database schema at application deployment time (by setting the hibernate.hbm2ddl.auto property in persistence.xml). It would be very useful to also generate the database schema creation file (i.e. the schema-create.sql when hibernate cartridge used).

 All   Comments   Change History      Sort Order:
Comment by Leandro Hermida [06/Sep/07 06:46 AM]
Hello,

I know this is not the exact solution you are looking for (i.e. via the EJB3 cartridge) but it works just as well. Using DBMS tools (mysqldump for MySQL, exp for Oracle, etc. you can dump the schema DDL.