-->
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: Parameterized User Type Chicken and Egg Problem
PostPosted: Mon Aug 03, 2009 2:08 pm 
Newbie

Joined: Mon Aug 03, 2009 1:56 am
Posts: 1
I have a custom hibernate type I've written that is a ParameterizedType. This custom type maps to one or two columns depending on the parameters passed in from the type definition. The type is actually used to store a password hash and an optional generated salt value. The problem I have is that the "UserType.sqlTypes()" method is called before ParameterizedType.setParameterValues(Properties) is called during initialization. This means I'm unable to return the array of types from "UserType.sqlTypes()" based on the parameters I based in from the type definition.

Am I missing something obvious?

Is this desired behavior?

Is this a bug I should file in Jira?

Thanks for any input in advance.


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.