Oh yeah and if you need the hbm.xml files on your classpath iside IDE it
really is dependent on your IDE which you did not mention.

Alex.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> [EMAIL PROTECTED] On Behalf Of Alex Shneyderman
> Sent: Wednesday, July 28, 2004 3:37 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [Xdoclet-user] Hibernate Newbie Question
> 
> 
> 
> > I'm betting that the application does not see the hbm.xml files I
> > generated with XDoclet. How
> > do I get the application to see the hbm.xml files? Can hibernate
> > applications be tested from a
> > development environment? How are Hibernate Objects referenced from
> within
> > an application
> > server?  I don't see and jndi code in any of the examples I have
seen.
> 
> You sure can use IDE to test your classes, but you will have to change
> your hibernate configuration, since JNDI is not available inside IDE
(if
> indeed you are using it).
> 
> I have two sets of config files for hibernate. The first config is for
> IDE testing. I have one AbstractBaseTestCase for hibernate related
> tests. In the setUp () of the test case I initialize hibernate and
make
> SessionFactory available for all the tests that extend the base. This
> way I can easily test my hibernate stuff inside IDE
> 
> The second configuration has all the JNDI stuff cofigured, so it will
> only be relevant to server side and is ported to it only when I am
ready
> to put it on the server, since I tested everything inside IDE there is
> really no way it will fail on the server, only if config is messed up.
> 
> So it pays to have two config sets, it requires initial time
investment
> but in the long run will pay off.
> 
> HTH,
> Alex.
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to