-->
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.  [ 4 posts ] 
Author Message
 Post subject: How to reach the Hibernate metadata
PostPosted: Wed Dec 22, 2004 6:03 am 
Newbie

Joined: Wed Dec 22, 2004 5:56 am
Posts: 9
Hi,

I'm creating the exception "parsing" framework providing the information in the mapped object level (e.g. the DB throw not unique exception - with table and column (index, constraint) name and I want to throw exception with the object class and property name, that is not unique).

And my question. Is there any way to get to the mapping file information (other then parsing the files)? Meaning the object class and table name mapping, the property name and associated column name?

Thanks

Jirka


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 22, 2004 6:21 am 
Newbie

Joined: Thu May 13, 2004 7:47 pm
Posts: 11
Take a look at net.sf.hibernate.mapping package


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 22, 2004 6:30 am 
Newbie

Joined: Wed Dec 22, 2004 5:56 am
Posts: 9
[quote="wchen"]Take a look at net.sf.hibernate.mapping package[/quote]

That's great, but to get the objects with the information. I have session factory?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 22, 2004 3:33 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Look at the API documentation for the "Configuration" class.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.