-->
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: Automatic deployment (discovery) of entities
PostPosted: Thu Sep 11, 2008 4:30 pm 
Newbie

Joined: Wed Apr 23, 2008 11:11 pm
Posts: 19
I am using hibernate with a Spring container with annotations and Hibernate Entity Manager (not JPA). We're using Tomcat, Jboss and Weblogic and need to support those AS and maybe more.

The entities deployed on the system need to be customized with a kind of plugin architecture so we should provide the ability to anyone to,say, deploy a jar file with entities in the classpath without any extra configuration whatsoever.

Currently we have our entities fqn hardcoded in the hibernate.cfg.xml. Is there any way to have an automatic detection of entities?

It is perfectly available to have something like META-INF/hibernate.xml that contains the necessary metadata to identify the entities to deploy in that jar file. Classpath scanning does not seem an option as the package name may change all the time


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.