-->
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.  [ 3 posts ] 
Author Message
 Post subject: When using java package statement in Hibernate POJO...
PostPosted: Thu Oct 02, 2003 3:06 pm 
Newbie

Joined: Tue Sep 30, 2003 8:14 pm
Posts: 10
Location: Southern Cali.
When I use a package statement in the POJOs, my *.hbm.xml mapping files are not found--no matter where they are in the project directory
structure. I tried everywhere. If I remove the package statements
and just include the mapping files in WEB-INF/classes where the
compiled POJO class files end up without package statements, then its
smooth sailing.

This has to be something boneheadedly simple but I just don't see it.

Help please!!!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 02, 2003 3:51 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
The typcially usage is to generate the mapping files under a directory structure parallel to that of the package in which your classes reside.

Say you have a mapped class named com.mycompany.domain.User. Then place the mapping file for the User class under the WEB-INF/classes/com/mycompany/domain directory.


Top
 Profile  
 
 Post subject: Packaging POJOS & mapping files...
PostPosted: Thu Oct 02, 2003 6:13 pm 
Newbie

Joined: Tue Sep 30, 2003 8:14 pm
Posts: 10
Location: Southern Cali.
steve wrote:
The typcially usage is to generate the mapping files under a directory structure parallel to that of the package in which your classes reside.

Say you have a mapped class named com.mycompany.domain.User. Then place the mapping file for the User class under the WEB-INF/classes/com/mycompany/domain directory.


I think that's what I have:

12010 Thu Oct 02 14:53:38 PDT 2003 META-INF/MANIFEST.MF
1149 Thu Oct 02 14:52:56 PDT 2003 Login.jsp
1428 Thu Oct 02 14:52:56 PDT 2003 LoginError.jsp
15723 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/DetailTest.class
7324 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/com/kalypsys/authentication/AuthenticationDAO.class
8086 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/com/kalypsys/authentication/JAASCookieAuthenticationFilter.class
7143 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/com/kalypsys/authentication/JAASSessionVarAuthenticationFilter.class
2043 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/com/kalypsys/authentication/ProtectedResource.class
1647 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/com/kalypsys/authentication/TrivialUserNamePrincipal.class
2660 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/com/kalypsys/authentication/UnsecureLoginModule.class
4021 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/com/kalypsys/authentication/test/StandaloneJAASTest.class
5040 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/com/kalypsys/domain/persistenceobjects/Actor.class
2362 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/classes/com/kalypsys/domain/persistenceobjects/ActorPK.class
2224 Wed Oct 01 10:49:36 PDT 2003 WEB-INF/classes/com/kalypsys/domain/persistenceobjects/Actor.hbm.xml
10454 Wed Oct 01 10:49:36 PDT 2003 WEB-INF/classes/com/kalypsys/domain/persistenceobjects/hibernate.properties
1108 Wed Oct 01 10:49:36 PDT 2003 WEB-INF/classes/com/kalypsys/domain/persistenceobjects/log4j.properties
737884 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/ant.jar
235686 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/c3p0.jar
148230 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/cglib-asm.jar
1124276 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/classes12.jar
118483 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/commons-beanutils.jar
165119 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/commons-collections.jar
62998 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/commons-dbcp.jar
63980 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/commons-lang.jar
31605 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/commons-logging.jar
28930 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/commons-pool.jar
17978 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/connector.jar
486522 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/dom4j.jar
925619 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/hibernate2.jar
104359 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/jaas.jar
293789 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/jcs.jar
6727 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/jdbc2_0-stdext.jar
8812 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/jta.jar
121070 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/junit.jar
350677 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/log4j-1.2.7.jar
13091 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/odmg.jar
671546 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/optional.jar
329103 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/proxool.jar
997276 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/xalan.jar
895813 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/xerces.jar
123705 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/lib/xml-apis.jar
2341 Thu Oct 02 14:52:56 PDT 2003 WEB-INF/signon-config.xml
851 Thu Oct 02 10:29:58 PDT 2003 WEB-INF/web.xml
19871 Wed Oct 01 10:49:36 PDT 2003 WEB-INF/classes/com/kalypsys/domain/persistenceobjects/hibernate-mapping-2.0.dtd
2341 Thu Oct 02 10:29:02 PDT 2003 signon-config.xml


Does this look wrong?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.