-->
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: Using Hibernate search with entities mapped by interfaces
PostPosted: Tue Jan 17, 2012 2:38 pm 
Newbie

Joined: Tue Jan 17, 2012 2:31 pm
Posts: 1
HI!

Is it possible to use Hibernate search when mapped entities are interfaces instead of classes? How? I couldn't find any example!
Currently I'm trying to replace the manually written integration of lucene into our project by the hibernate-search solution (which worked fine in another project).

All examples (and also the hibernate-search source code (e.g. in SearchFactoryBuilder.java) seem to work only when mapped entities are actual classes and not interfaces. Is this correct?

Any help kindly appreciated :)
Cheers!

Michael


Top
 Profile  
 
 Post subject: Re: Using Hibernate search with entities mapped by interfaces
PostPosted: Wed Jan 18, 2012 11:36 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi,

I am wondering how mapped entities can be interfaces? In the end you always need an actual class, right?
An entity can implement an interface and you can place annotations on this interface, but in the end there is an actual class annotated with @Entity and @Indexed. Or maybe I misunderstood the question?

--Hardy


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.