-->
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: Hibernate Search Annorations in UI
PostPosted: Tue Jun 30, 2009 5:48 am 
Newbie

Joined: Sat Jan 26, 2008 5:34 pm
Posts: 2
Mapping of data object in Hibernate search is done using annotations,
However this require adding the hibernate search JAR to the classpath.

But in the UI I don't want to add Hibernate Search JAR to the UI classpath because it is a backend JAR, how can I overcome this problem?


Top
 Profile  
 
 Post subject: Re: Hibernate Search Annorations in UI
PostPosted: Tue Jun 30, 2009 10:54 am 
Hibernate Team
Hibernate Team

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

the easiest would be to just include the jar file. Is there any particular reason why you don't want to include it into the UI?

Otherwise two options come to my mind
  • Implement a xml configuration for Hibernate Search. It should be straight forward and you would make other people happy as well - https://www.hibernate.org/443.html ;-)
  • Use the maven-shade plugin to include just the annotations you need into your UI jar. This approach of course is only working in case you are using maven as build tool and one has to carefully think about the implications.

--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.