-->
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.  [ 1 post ] 
Author Message
 Post subject: @Loader annotation not working
PostPosted: Fri Apr 23, 2010 3:23 am 
Newbie

Joined: Fri Apr 23, 2010 3:13 am
Posts: 1
I have problem that @Loader annotation is not working for the following class definition:

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedNativeQuery;
import javax.persistence.Table;
import org.hibernate.annotations.Loader;

@Entity
@Table(name = "TESTI")
@Loader(namedQuery = "lataaTesti")
@NamedNativeQuery(name = "lataaTesti", hints = { @javax.persistence.QueryHint(name = "org.hibernate.callable", value = "true") }, query = "call lataaTestiProseduuri('50')", resultClass = Testi.class)
public class Testi implements Serializable{
...
}


The class itself works just fine and loads from database but at loading it completely ignores the @Loader definition and loads itself directly from corresponding database table and skips the procedure call...

I am using sql server and Hibernate 3.5.1-Final version (and hibernate-annotations-3.5.1-Final, hibernate-jpa-2.0-api-1.0.0.Final).

P.S. A "similar" issue has been reported at (but already at 2006...)
viewtopic.php?f=9&t=977936&view=previous


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.