That is possible. Try this...
Add to sculptor-generator.properties:
generate.ddl=false
db.product=db2
db.db2.maxNameLength=27
db.db2.hibernate.dialect=org.hibernate.dialect.DB2Dialect
db.db2.onDeleteCascade=false
Add to SpecialCases.xpt:
«AROUND *::hibernateConnectionDatasourceProperties FOR Application»
<prop key="hibernate.hbm2ddl.auto">create-drop</prop>
«targetDef.proceed()»
«ENDAROUND»
The last thing will add the hbm2ddl property to the SessionFactory
definition.
/Patrik
Bjoern_G wrote:
>
> Since we need support for DB2, I was wondering if it would be a valid
> approach to simply use the hbm2dll schema generator that is provided by
> Hibernate, as Hibernate seems to support DB2?
>
> I suppose the database support for sculptor is only required for the
> schema generation? So I think if we generate the schema from the
> hibernate mappings that sculptor generates, we don't need to create an
> extra DB2 adaption for sculptor?
>
--
View this message in context:
http://www.nabble.com/Using-hbm2dll-to-generate-database-schema--tp17205218s17564p17216737.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer