-->
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.  [ 7 posts ] 
Author Message
 Post subject: Mapping file not generated. No Hibernate 3.0 XML Editor
PostPosted: Fri Sep 19, 2008 8:07 am 
Newbie

Joined: Fri Sep 19, 2008 7:58 am
Posts: 1
Hi,

I downloaded HibernateTools-3.2.2.Beta1 and plugged it into eclipse 3.2 and eclipse Ganymede. I tried generating a mapping from a class (New > Hibernate XML mapping file) but just get an .hbm.xml file that does not pick up the classes properties. It does not display Open With > Hibernate 3.0 XML Editor (this doesn't exist) as suggested in the documentation. Any ideas?

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.hp.ReceptionDesk3.document">
<class name="Certificate">
</class>
</hibernate-mapping>

Hibernate version:

3


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 23, 2008 3:41 pm 
Newbie

Joined: Thu Oct 23, 2008 3:37 pm
Posts: 1
Hi,
I'm facing the same problem too, with Eclipse 3.3
Does anyone know how to resolve this?

Regards,
Manohar


Top
 Profile  
 
 Post subject: Hibernate XML mapping file does include properties
PostPosted: Thu Feb 05, 2009 2:49 pm 
Newbie

Joined: Thu Feb 05, 2009 2:26 pm
Posts: 1
I too have experienced the same problem. The class element of the HBM mapping file (MyFirstClass.hbm.xml) does not contain any children:

<class name="MyFirstClass">
</class>


CONTEXT
Eclipse: Ganymede (3.4.0)
Hibernate Tools: 3.2.4.CR2 (3.2.3GA was throwing exceptions for me)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2009 10:37 am 
Newbie

Joined: Wed Feb 18, 2009 10:05 am
Posts: 2
Hi, same problem for me too! I can't understand how this simple feature doesn't work...
I have a simple class and the generation of hbm.xml file does not contain any children (properties).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2009 8:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
The feature does not do more than that currently - it just creates the basic .hbm.xml template.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Mapping file not generated. No Hibernate 3.0 XML Editor
PostPosted: Wed May 27, 2009 12:12 pm 
Newbie

Joined: Wed May 27, 2009 11:59 am
Posts: 10
Hi,
I also had this problem of not seeing the XML Editor from eclipse ganymede.
The solution that helped me was installing the full JBossTools package from the site, by dropping its' content in dropin folder in eclipse.
after that, It showed, by didn't work well and threw a lot of errors.
I updated the JBossTools from the SoftwareUpdate in eclipse, and also the supporting tools there.

Now it works OK.


Top
 Profile  
 
 Post subject: Re: Mapping file not generated. No Hibernate 3.0 XML Editor
PostPosted: Thu May 28, 2009 4:50 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the structured hbm.xml requires full jboss tools that is correct, but the wizard does not.

btw. the wizard is much improved in the nightly builds...

_________________
Max
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.  [ 7 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.