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!!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!!!
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.
And extending and providing the middlegen plugin is from here:
http://boss.bekk.no/boss/middlegen/extending/index.html
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 ?