Breaker

Schema Generation : Hibernate vs Toplink

Do you know why I like hiberante and dislike toplink?A simple reason should be hibernate scheme generation can update columns and lots of stuff in existing table as mentioned below: SchemaExport (hbm2ddl): This tool is provided with the core Hibernate download. It uses Hibernate mapping metadata XML files to generate a SQL database schema with …

Breaker

Dependency Injection

….@EJB OrangeJuiceManagerLocal ojml;@EJB WaterManagerLocal wml;…. private OrangeJuice getSomeOrangeJuice(){ List oranges = ojml.finAllOranges(); Water water = wml.findColdWater(); return mixOrangeToWater(oranges,water);} …. 😉 Related posts: EJB3 Unit Test