-->
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: JPA 2 namen für JDBC Einstellungen
PostPosted: Fri Nov 27, 2009 12:22 pm 
Newbie

Joined: Fri Nov 27, 2009 12:16 pm
Posts: 3
Wenn ich in der persistence.xml die seit JPA 2 standardisierten Namen für die JDBC-Parameter verwende, stellt Hibernate keine JDBC-Verbindung her.

Code:
<property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver"/>
<property name="javax.persistence.jdbc.url"    value="jdbc:hsqldb:mem:speicher"/>
<property name="javax.persistence.jdbc.user" value="sa"/>
<property name="javax.persistence.jdbc.password" value=""/>

Ich bekomme damit die Fehlermeldung:
java.lang.UnsupportedOperationException: The user must supply a JDBC connection

Benutze ich dagegen die klassischen Hibernate-spezifischen Parameter geht es:
Code:
<property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver"/>
<property name="hibernate.connection.url" value="jdbc:hsqldb:mem:speicher"/>
<property name="hibernate.connection.username" value="sa"/>
<property name="hibernate.connection.password" value=""/>


Warum geht das nicht mit den JPA-2-Parameternamen? Ist das eine in Hibernate 3.5.0-Beta-2 noch nicht enthalten Funktion des Standards oder ein Bug?


Top
 Profile  
 
 Post subject: Re: JPA 2 namen für JDBC Einstellungen
PostPosted: Fri Dec 11, 2009 4:44 pm 
Newbie

Joined: Fri Dec 11, 2009 4:34 pm
Posts: 1
Thanks for you information..
It has been really very useful to me.. Thanks a lot..

_________________
reputatiemanagement | drug rehab


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.