-->
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 (annotated) entity classes outside a container?
PostPosted: Tue Nov 28, 2006 11:10 am 
Newbie

Joined: Mon Oct 16, 2006 7:55 am
Posts: 5
Hello!

I have got a general question concerning Hibernate:

I have got annotated entity classes represeting a database schema. Now I would like to use these entity classes in order to communicate with a database via Hibernate from OUTSIDE an application container. Is this possible? If yes, please let me know how.

The reason behind is that the project I am working on is large and redeploying to jboss takes quite some time. Therefore, I would like to develop a part of the project OUTSIDE of the container, but still using the same entity classes so that I can easily integrate my work later on.

Thanks in advance,
Markus


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 28, 2006 11:18 am 
Senior
Senior

Joined: Mon Oct 23, 2006 5:12 am
Posts: 141
Location: Galicia, Spain
Of course it is possible. I'm using hibernate in a standalone swing app and it works like hell :)

You only need to add hibernate.jar and all the dependencies to the classpath and you're done.

The hibernate tutorial, indeed, does not use an application server:

http://www.hibernate.org/hib_docs/v3/re ... orial.html

_________________
andresgr (--don't forget to rate)


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.