Menu

Hibernate Support

md38
2004-11-05
2013-04-25
  • md38

    md38 - 2004-11-05

    Hi everyone,

    I have been doing some research recently related to the code generation based on database schema. So far I found the sql2java handles this very well especially on the relationship handling.

    However, can I have one and only one suggestion here please:

    Can sql2java further provide the support for Hibernate, say, to read the database schema and generate the hbm mapping files which then can be the input for hbm2java (the native Hibernate tool) to generate Hibernate classes.

    Know that Hibernate is now a very sophisticated framework in the industry to handle O-R mapping in the data persistence layer. However, currently its java code generation is not database schema driven.

    And in this situation, sql2java has the great protential to fill up this gap and if so, it would be strategically much much more attractive to the world!!!

     
    • md38

      md38 - 2004-11-05

      Further, the middlegen project has provided this Hibernate plugin but it has the problem in handling complicated cascade relationships!!! http://boss.bekk.no/boss/middlegen/plugins/hibernate.html

      Since sql2java has already done this job pretty well, I am just wondering the world would be just perfect if sql2java can replace the middlegen hibernate plugin and provide its own hibernate plugin.

       
    • md38

      md38 - 2004-11-05

      And extending and providing the middlegen plugin is from here:

      http://boss.bekk.no/boss/middlegen/extending/index.html

       
    • nr

      nr - 2005-06-29

      Hi, check out sql2java version 2.6.0 it is using velocity to generate the source code... I imagine adding hibernate support is a matter of adding a template to sql2java ... any volonteer ?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.