-->
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.  [ 2 posts ] 
Author Message
 Post subject: Techniques to configure a UserType
PostPosted: Mon Nov 08, 2004 2:18 am 
Newbie

Joined: Tue Jul 06, 2004 10:57 pm
Posts: 4
Does Hibernate 2.1.6 allow for the dynamic configuration of a UserType? I can write an Interceptor for configuring Entities by providing the Interceptor.instantiate method, but I need to do the same thing for a UserType and Interceptor.instantiate isn't called for UserTypes.

I specifically need to open a session within UserType.nullSafeGet and UserType.nullSafeSet but I don't know how to access the SessionFactory. How do I do this?

I am using Spring for my application's configuation, but I don't know how to get at the applicationContext within my UserType - all I can do is get access to the JDBC connection (through the ResultSet and PreparedStatement).

How do I configure a UserType? Any ideas?

Warmest regards, Matt


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 08, 2004 4:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This is most likely not possible. You can do static configuration of UserTypes in H3.


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