-->
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.  [ 1 post ] 
Author Message
 Post subject: Checking table metadata (JNDI hibernate service)
PostPosted: Thu Mar 10, 2005 5:29 pm 
Beginner
Beginner

Joined: Tue Sep 21, 2004 1:49 pm
Posts: 33
Location: Bogota, Colombia
Hibernate version:2.1.8
JBoss: 3.2.7

Hi, I've been searching the forum looking for a way to check the metadata described in the XML mappings just for validations. I need to check if a field is nullable, its max size, etc.

So far I've found how to get the metadata using the Configuration object, but since I'm creating the SessionFactory as a JBoss MBean and not from a config file I have no access to it. Through JNDI I can only access the SessionFactory...

Does anybody know how can this be acomplished? (Getting the Configuration object would be the easiest way to do this)

PD. I've found posts similar to this one, and still no answer.


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

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.