hibernate hbm2ddl auto hubungannya dengan hibernate dialect

Hibernate hbm2ddl auto = create kq ga bisa meng-generate table ?

q> Utak atik sama hibernate.cfg.xml kesimpulannya ketika menggunakan

<property name="hibernate.hbm2ddl.auto">create</property>

untuk menggenerate table, sedangkan pada property lain di hibernate.cfg.xml
q>

<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>

q> keadaan seperti ini menyebabkan error “o.h.tool.hbm2ddl.SchemaExport”

q> Seletah property hibernate.dialect diganti menjadi ini

<property name="hibernate.dialect"><property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>

q> Generate table Sukses

Published by

saifiahmada

Begin a big Process with a bit trying

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s