-->
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: HHH000456 with Mysql
PostPosted: Tue Apr 12, 2016 3:00 pm 
Newbie

Joined: Wed Jan 06, 2016 4:35 pm
Posts: 5
Running mysql 5.7.10, hibernate 4.3.11, JPA 2.1 on Weblogic 12.1.3

When using StoredProcedureQuery.registerStoredProcedureParameter, get the following warning in log:

Apr 12, 2016 2:43:02 PM org.hibernate.procedure.internal.ProcedureCallImpl prepareForNamedParameters
WARN: HHH000456: Named parameters are used for a callable statement, but database metadata indicates named parameters are not supported.

Named parameters must be supported because my code works with them. Is there a way to disable this warning, or is it a known issue? I did a search on this forum for HHH000456 and got nothing.


Top
 Profile  
 
 Post subject: Re: HHH000456 with Mysql
PostPosted: Wed Apr 13, 2016 1:42 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
Hibernate just uses the JDBC java.sql.DatabaseMetaData#supportsNamedParameters method, which always returns false in the MySQL JDBC driver implementation.

So, even if MySQL does not support it natively, the Connector/J driver emulates it somehow, which is why named parameters just work, and they are even documented on the driver site.

As for the warning, you can just ignore it at the log4j level.


Top
 Profile  
 
 Post subject: Re: HHH000456 with Mysql
PostPosted: Wed Apr 13, 2016 7:10 am 
Newbie

Joined: Wed Jan 06, 2016 4:35 pm
Posts: 5
Thanks for the info!


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.