Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
hbm2ddl コマンドを使用して JPA2 ベースのアノテーションから SQL を自動生成すると、ENGINE=InnoDB のテーブルが自動的に作成されます。
e.g. create table foo (id integer not null, bar integer) ENGINE=InnoDB;
ENGINE=MyISAM の SQL を生成するには、JPA モデル クラスをどうすればよいですか?
Hibernate for MySQL には 3 つの方言があります。
MySQL org.hibernate.dialect.MySQLDialect MySQL with InnoDB org.hibernate.dialect.MySQLInnoDBDialect MySQL with MyISAM org.hibernate.dialect.MySQLMyISAMDialect
それはあなたの目的に役立つと思います。
他に欲しいものや実装が難しいところなどありましたらお尋ねください。