-->
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: mapping interfaces with HEM/HAN
PostPosted: Tue Sep 12, 2006 9:01 pm 
Newbie

Joined: Thu Jun 24, 2004 2:19 am
Posts: 10
Hibernate version:
3.2RC2 Core, 3.2RC1 HEM/HAN


the Entity Manager and Annotations stuff is working nicely but i can not figure out how to map interfaces so i can query for them with

EntityManager.find(ISomeInterface.class, someId);

I always get an Exception stating that ISomeInterface is an unknown entity. No matter if a mention it in persistence.xml or not...

I am pretty sure i am missing something here...because
I got this working earlier with just HAN (without using HEM, just "straight" SessionFactory :-) ) but i can't see any differences (besides that i am not using HEM).

I would be glad if someone can point me in the right direction... thanks a lot.

Pascal


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 15, 2006 9:06 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I'm sure it does not work either
A query will work though
Code:
from Interface where id=:id

_________________
Emmanuel


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.