RE: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hello lexi Are you trying to document your hibernate classes?? Have you tried hbm2doc? Regards Johann Reyes -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 16, 2007 11:22 AM To: Maven Users List Subject: Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources Hi, i think somehow you can make it work with the genration of DDL if you check pluginDoc, in your configuration element there's something that allows you to use hibernate.properties file (if that is what you are using) alternatively, i think you could still invoke schemaExport (or whatever task is called in hibernate3) from maven-antrun-plugin hth marco On 1/16/07, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi. i think you can configure what todo in the sessionFactory prop key=hibernate.hbm2ddl.autocreate/prop that way will be easier Yes, this is how it works right now. But we'd also like to generate the DDLs for documentation/reference purposes. with codehaus plugin you can use also an hibernate.properties, pls check properties available for that plugin when i tried, i didnt succeeded, so i decided to configure it on the sessionFactory. for tests, i am using a different DS, with different properties Ok, nice idea, thanks! Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hi, actually what i was doing was trying to generate schema export file, but then i figured out that i might let the hibernate session create tables for me.. regards marco On 1/23/07, Johann Reyes [EMAIL PROTECTED] wrote: Hello lexi Are you trying to document your hibernate classes?? Have you tried hbm2doc? Regards Johann Reyes -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 16, 2007 11:22 AM To: Maven Users List Subject: Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources Hi, i think somehow you can make it work with the genration of DDL if you check pluginDoc, in your configuration element there's something that allows you to use hibernate.properties file (if that is what you are using) alternatively, i think you could still invoke schemaExport (or whatever task is called in hibernate3) from maven-antrun-plugin hth marco On 1/16/07, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi. i think you can configure what todo in the sessionFactory prop key=hibernate.hbm2ddl.autocreate/prop that way will be easier Yes, this is how it works right now. But we'd also like to generate the DDLs for documentation/reference purposes. with codehaus plugin you can use also an hibernate.properties, pls check properties available for that plugin when i tried, i didnt succeeded, so i decided to configure it on the sessionFactory. for tests, i am using a different DS, with different properties Ok, nice idea, thanks! Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hi. Are you trying to document your hibernate classes?? Have you tried hbm2doc? No, we really need the database schema (DDL) for project documentation. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hello lexi K, so you need to use hbm2ddl with the jdbcconfiguration implementation with the component property outputfilename set to a sql filename. Regards Johann Reyes -Original Message- From: Aleksei Valikov [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 23, 2007 12:45 PM To: Maven Users List Subject: Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources Hi. Are you trying to document your hibernate classes?? Have you tried hbm2doc? No, we really need the database schema (DDL) for project documentation. Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hi. In my project, Hibernate configuration and mappings are distributed among several JARs. That is, *.hbm.cfg and *.hbm.xml are resources inside JAR artifacts rather than files. There is a war module which depends on all of these JARs. And I need to export the database schema (DDL) for this module. Unfortunatelly codehaus hibernate3 plugin that I've encountered requires Hibernate configuration as a file. Is there a way to export the database schema for the Hibernate configuration defined in several JARs with Maven? Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hello, i think you can configure what todo in the sessionFactory prop key=hibernate.hbm2ddl.autocreate/prop that way will be easier with codehaus plugin you can use also an hibernate.properties, pls check properties available for that plugin when i tried, i didnt succeeded, so i decided to configure it on the sessionFactory. for tests, i am using a different DS, with different properties hth marco On 1/16/07, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi. In my project, Hibernate configuration and mappings are distributed among several JARs. That is, *.hbm.cfg and *.hbm.xml are resources inside JAR artifacts rather than files. There is a war module which depends on all of these JARs. And I need to export the database schema (DDL) for this module. Unfortunatelly codehaus hibernate3 plugin that I've encountered requires Hibernate configuration as a file. Is there a way to export the database schema for the Hibernate configuration defined in several JARs with Maven? Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hi. i think you can configure what todo in the sessionFactory prop key=hibernate.hbm2ddl.autocreate/prop that way will be easier Yes, this is how it works right now. But we'd also like to generate the DDLs for documentation/reference purposes. with codehaus plugin you can use also an hibernate.properties, pls check properties available for that plugin when i tried, i didnt succeeded, so i decided to configure it on the sessionFactory. for tests, i am using a different DS, with different properties Ok, nice idea, thanks! Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate3 export where *.hbm.cfg and *.hbm.xml are resources
Hi, i think somehow you can make it work with the genration of DDL if you check pluginDoc, in your configuration element there's something that allows you to use hibernate.properties file (if that is what you are using) alternatively, i think you could still invoke schemaExport (or whatever task is called in hibernate3) from maven-antrun-plugin hth marco On 1/16/07, Aleksei Valikov [EMAIL PROTECTED] wrote: Hi. i think you can configure what todo in the sessionFactory prop key=hibernate.hbm2ddl.autocreate/prop that way will be easier Yes, this is how it works right now. But we'd also like to generate the DDLs for documentation/reference purposes. with codehaus plugin you can use also an hibernate.properties, pls check properties available for that plugin when i tried, i didnt succeeded, so i decided to configure it on the sessionFactory. for tests, i am using a different DS, with different properties Ok, nice idea, thanks! Bye. /lexi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]