Category Archives: mysql

some hibernate twinkies

notes to self,

-JPA is the standard java annotation thingy for hibernate type things

-hibernate reference document lists nicely all configuration options. to get a list of relevant ones to set better to google for tutorial for hibernate and that db, then check the docs for what the options are.

-“hibernate.hbm2ddl.auto”, “create” leads to breaking of the mysql innodb syntax. at least it gives the syntax to create the table, just need to run this first and fix manually the engine part.

-annotationconfiguration class in hibernate is deprecated. just use “configuration” class in the same way. reference manual configuration section also helps in the first paragraphs.