- This topic has 4 replies, 2 voices, and was last updated 20 years, 7 months ago by
Riyad Kalla.
-
AuthorPosts
-
haobaba1MemberIs it possible to generate simple java objects from a table definition with the current database tools?
If not this sure would be nice!
December 15, 2004 at 10:46 am #221187
Riyad KallaMember1) Open the DB Explorer perspective
2) Connect to your DB
3) Expand the db to show the tables
4) Right click > Generate Hibernate MappingThis will generate Hibernate POJOs with accompanying hbm.xml files describing them and updates your hibernate.cfg.xml file for you.
If you mean just the POJOs themselves without any mapping classes, then no, we don’t just do that… although if you think it is helpful we can certainly look into adding it easily enough.
December 15, 2004 at 2:53 pm #221224
haobaba1Member@support-rkalla wrote:
1) Open the DB Explorer perspective
2) Connect to your DB
3) Expand the db to show the tables
4) Right click > Generate Hibernate MappingThis will generate Hibernate POJOs with accompanying hbm.xml files describing them and updates your hibernate.cfg.xml file for you.
If you mean just the POJOs themselves without any mapping classes, then no, we don’t just do that… although if you think it is helpful we can certainly look into adding it easily enough.
It would be nice if there was an option to generate POJOS from the table definitions with the ability to specify the package and location.
December 15, 2004 at 2:57 pm #221226
haobaba1Member@support-rkalla wrote:
1) Open the DB Explorer perspective
2) Connect to your DB
3) Expand the db to show the tables
4) Right click > Generate Hibernate MappingThis will generate Hibernate POJOs with accompanying hbm.xml files describing them and updates your hibernate.cfg.xml file for you.
If you mean just the POJOs themselves without any mapping classes, then no, we don’t just do that… although if you think it is helpful we can certainly look into adding it easily enough.
Actually thinking about it some more it may be appropriate to put this functionality in the new Class dialog by allowing the user to select from databases currently open in the database viewer.
December 15, 2004 at 4:02 pm #221238
Riyad KallaMemberBoth good suggestions, I will file your comments as an enhancement.
-
AuthorPosts