-->
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 SqlResultSetMapping with alias issue
PostPosted: Thu Sep 01, 2016 7:06 am 
Newbie

Joined: Thu Sep 01, 2016 6:55 am
Posts: 1
Hello,

I have an issue with JPA and SqlResultSetMapping where alias for column needs to be used. As soon as single @FieldResult is defined in @EntityResult, Hibernate seem to "forget" all other column names.

I posted a question on StackOverflow with longer description: http://stackoverflow.com/questions/3924 ... ng-aliases

I would appreciate it if someone with profound Hibernate knowledge could take a look. There are examples online and in books that show that what I am trying to do is valid, but perhaps not - I am new to Java EE and JPA. All the workarounds I found so far are quite ugly.


Top
 Profile  
 
 Post subject: Re: JPA SqlResultSetMapping with alias issue
PostPosted: Thu Sep 01, 2016 7:26 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
I tried to answer it on SO as well.


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.