venuwin wrote:
We are using using annotations to generate the DDL thru hbm2ddl. How can i specify the engine type in the POJO so that i can specify the engine type as per my wish.
As far as I know, there is no annotation which does this. In my project I also use annotations (JPA) and I generate the DDL with Ant and hibernate.cfg.xml; in this file I have this line:
Code:
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
And this has the desired effect:
Code:
create table xyz.ACCOMMODATION (
.....
) type=InnoDB;
Is this what you are looking for?