-->
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.  [ 3 posts ] 
Author Message
 Post subject: Cannot set custom ValidationFactory with Hibernate 3.5 JPA 2
PostPosted: Wed Dec 23, 2009 3:11 pm 
Regular
Regular

Joined: Thu Aug 26, 2004 9:23 pm
Posts: 71
I'm trying Hibernate 3.5 beta 2 JPA 2.0.

I'm attempting to provide a custom ValidationFactory by setting the configuration value "javax.persistence.validation.factory" to a ValidationFactory. However, in:

Ejb3Configuration.configure():463

ConfigurationHelper.overrideProperties() appears to simply strip out any configuration properties that are not Strings. Does anyone know how I can provide a custom ValidationFactory to Hibernate 3.5 beta 2?

If I don't get any responses I'll go ahead and submit an issue.

Thanks,
Mike


Top
 Profile  
 
 Post subject: Re: Cannot set custom ValidationFactory with Hibernate 3.5 JPA 2
PostPosted: Wed Dec 23, 2009 3:30 pm 
Regular
Regular

Joined: Thu Aug 26, 2004 9:23 pm
Posts: 71
The problem appears to be when using PersistenceProvider.createContainerEntityManagerFactory(PersistencUnitInfo, Map) then all properties in the Map are stripped down to strings but all the properties in the PersistenceUnitInfo are not stripped down to strings.

Still investigating if that should be the case and I should be passing that prameter through the PersistenceUnitInfo object instead of the map.


Top
 Profile  
 
 Post subject: Re: Cannot set custom ValidationFactory with Hibernate 3.5 JPA 2
PostPosted: Wed Dec 23, 2009 4:58 pm 
Regular
Regular

Joined: Thu Aug 26, 2004 9:23 pm
Posts: 71
Created an issue for this problem.

http://opensource.atlassian.com/project ... e/HHH-4736


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