-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: configuration mapping via api
PostPosted: Sun Dec 12, 2004 10:16 am 
Beginner
Beginner

Joined: Fri Aug 29, 2003 10:01 am
Posts: 34
Location: florence, italy
hi,

quite some time ago I was wondering the above mater and found I think in the jira a note by gavin king about developing the configuration api so that one could map a persistent class using the api, instead of xml or tags, which would be very very nice.

actually, this is what hibernate does at its core, but I've tried to mimic it and it ain't that easy now, there are also protected methods and so on.

is anyone working on this ? is it a still desired feature ? I must be aging, as I can no longer find it in the jira.

thanks for help


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 12, 2004 8:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
A lot of work is being done, sort of, in this area. One example is Max's new JDBCBinder. Very nice (currently experimental) approach that allows a table to be mapped without XML just using JDBC meta data alone. Obviously, its limited for general use but in the case of enhancing tool support it will be invaluable.


Top
 Profile  
 
 Post subject: ClassConfiguration object
PostPosted: Mon Dec 13, 2004 5:31 am 
Beginner
Beginner

Joined: Fri Aug 29, 2003 10:01 am
Posts: 34
Location: florence, italy
ok, but no one is building say a "PersistentClassConfiguration" object that one could pass to Configuration, am I rigth ? I would like to build one if:

- this is not in constrast with hib current development, so it would be wasted

- no one of the hib team is working on it

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 13, 2004 7:19 am 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
An other approach would be to create and/or manipulate the hbm.xml before you feed it to the Configuration.
A nice API could easily genereated with Castor.

HTH
Ernst


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 04, 2005 2:56 pm 
Beginner
Beginner

Joined: Fri Aug 29, 2003 10:01 am
Posts: 34
Location: florence, italy
see

http://www.hibernate.org/244.html


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.