-->
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: Error Converting nvarchar to uniqueIdentifier.
PostPosted: Wed Sep 14, 2016 1:48 pm 
Newbie

Joined: Mon Jun 20, 2005 9:25 am
Posts: 7
I have a proceudre in sql server called using hibernate

@Override
public void getAccess() {
Query query = (Query) getSession().createSQLQuery("EXEC getAccess :name,:empId")
.setParameter("name", "AAA")
.setParameter("empId","1dcf61b2-2b37-4c18-bad6-7b51b9ce5c61")
List result = query.list();
return ;
}


It errors on empId (Error Converting nvarchar to uniqueIdentifier.). Please let now how to pass an id of this type from hibernate to sql server


Top
 Profile  
 
 Post subject: Re: Error Converting nvarchar to uniqueIdentifier.
PostPosted: Wed Sep 14, 2016 1:57 pm 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
You already asked this question and I gave you an answer.


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.