-->
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: PLUG IN STRUTS
PostPosted: Mon Sep 15, 2003 1:15 pm 
Beginner
Beginner

Joined: Mon Sep 15, 2003 9:10 am
Posts: 43
i have another pb now !

well i use the plugin for struts made by Ted husted, but how can i load my mapping.hbm.xml (i have only one file for the moment with 3 classes)
in the function createConfiguration of the plugins HibernatePlugin.java ?


I don't think i should use this : ....

private static final Configuration createConfiguration()
throws MappingException {
return new Configuration()
.addClass(eg.User.class)
.addClass(eg.Contact.class)
.addFile("C:\\dvlp\\eclipse\\workspace\\SH\\WEB-INF\\src\\hibernate\\src\\MappingGlobal.hbm.xml");
}

Can anyone know ? Thanks a lot !


Top
 Profile  
 
 Post subject: hibernate.cfg.xml
PostPosted: Mon Sep 15, 2003 1:34 pm 
Senior
Senior

Joined: Sun Aug 31, 2003 3:14 pm
Posts: 151
Location: Earth (at the moment)
put this line in your hibernate.,cfg.xml file:
Code:
<mapping resource="..../MappingGlobal.hbm.xml"/>


Fill in the path "...." with your relative path.


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.