I mean -D param. I have defined persistence.xml as this. <property name="hibernate.dialect" value="${persistence.dialect}"/>
And while starting server (JAVA_OPTS), i pass -Dpersistence.dialect=mysql...
And it works. Issue is, in hbm2ddl its not supported. However i figured out a way. I use <jpaconfiguration propertyfile=${file.with/hibernate/dialect=oracle...}>
It woks. Sort of hack though. so at the time of building i change file to generate appropriate sqls.
It would have been clean if hbm2ddl anttask supported -D params.
|