-->
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.  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Hibernate Mapping Editor...
PostPosted: Sun Jul 17, 2005 4:28 pm 
Beginner
Beginner

Joined: Tue Jun 14, 2005 12:14 pm
Posts: 37
Hello,

I am trying to use the Hibernate Mapping Editor, but can't get it to work...

I have:

1) Eclipse 3.1
2) JBossIDE1.5M1
3) hibernate-tools.3.0.0.alpha4a

installed in the above order.

When I try to associate the file type of hbm.xml, I can't find the Hibernate Mapping Editor listed anywhere (even though the Hibernate perspective is available). What am I doing wrong? Is it supposed to be called Hibernate Mapping Editor or something like that?

Thanks in advance,
Liem


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 17, 2005 5:09 pm 
Beginner
Beginner

Joined: Tue Jun 14, 2005 12:14 pm
Posts: 37
Got it to work! Thanks.


Top
 Profile  
 
 Post subject: I can't start the mapping editor either
PostPosted: Wed Jul 20, 2005 1:56 pm 
Newbie

Joined: Wed Jul 20, 2005 1:51 pm
Posts: 1
Hi,

What should be done? I see no mapping editor under "Open with..." pop up menu, just several XML editors.

Cheers,
Piotr


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 20, 2005 4:12 pm 
Beginner
Beginner

Joined: Tue Jun 14, 2005 12:14 pm
Posts: 37
If you open it with the JBoss-IDE XML Editor, it should work.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 5:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
NO! You should just open it with the normal xml editor.

Hibernate tools integrates with the standard xml editor in WTP.

if it does not work then try to start eclipse with eclipse -clean

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 6:31 am 
Newbie

Joined: Tue Jul 19, 2005 2:25 am
Posts: 5
i think yor are not pasted plugins
raju


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 6:36 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I did not understand that ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 10:49 am 
Beginner
Beginner

Joined: Tue Jun 14, 2005 12:14 pm
Posts: 37
max wrote:
NO! You should just open it with the normal xml editor.

Hibernate tools integrates with the standard xml editor in WTP.

if it does not work then try to start eclipse with eclipse -clean


I thought we need the JBoss IDE to use the Hibernate Mapping Editor? Before, I did not have the JBoss IDE, just Eclipse and the Hibernate plug-in, I could not get the Hibernate tags to complete. And, yes, I did try it with Eclipse -clean.

If we don't need the JBoss IDE, please let us know--I would love to do without it, since it is quite buggy -> Can't get missing imports to auto-insert anymore... Grrr!

Liem


Top
 Profile  
 
 Post subject: Unclear instructions...
PostPosted: Thu Jul 21, 2005 11:45 am 
Beginner
Beginner

Joined: Tue Jun 14, 2005 12:14 pm
Posts: 37
Hi Max,

So, reading the instructions on http://www.hibernate.org/hib_docs/tools ... index.html one more time. It does not mention anywhere about a JBoss IDE. But, if I just have Eclipse 3.1 and the Hibernate toolset, it does not work.

So, for clarity sake, if you can help me (and a few other folks on this forum as well) and fill out the following "recipe" to jump-start anyone to use the Hibernate Mapping Editor:

Steps:
1) Install Eclipse 3.1
2) Install JBossIDE 1.5 (Is this needed?)
3) Install Hibernate Tools (Is this needed if we have JBossIDE 1.5?)
4) Any file extension association needed? If file extension association is needed, which one? I have on my Eclipse (with JBoss IDE) the followings:
a) XML Source Page Editor (default)
b) XML Editor
c) XML Editor (JBoss-IDE)
Which one should *.hbm.xml point to?
5) Start Eclipse -clean?

I think you have an excellent tool at hand, but the documentation is a little bit vague and therefore makes it a little bit frustrating to use for some.

Thanks,
Liem


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 12:42 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Directly from the docs:

Install Eclipse 3.1 (http://www.eclipse.org)

After you have downloaded the Hibernate Tools for Eclipse, unpack and copy the plugins to your Eclipse plugins directory. Sometimes Eclipse does not automatically detect new plugins and thus the tools will not be activated. To ensure eclipse sees these changes run eclipse with the -clean option. E.g. eclipse -clean

No mention of JBossIDE or WTP since all the dependencies are included in the download.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 1:24 pm 
Beginner
Beginner

Joined: Tue Jun 14, 2005 12:14 pm
Posts: 37
max wrote:
Directly from the docs:

Install Eclipse 3.1 (http://www.eclipse.org)

After you have downloaded the Hibernate Tools for Eclipse, unpack and copy the plugins to your Eclipse plugins directory. Sometimes Eclipse does not automatically detect new plugins and thus the tools will not be activated. To ensure eclipse sees these changes run eclipse with the -clean option. E.g. eclipse -clean

No mention of JBossIDE or WTP since all the dependencies are included in the download.


Wipe every clean. Re-install Eclipse 3.1 and the Hibernate toolset. Run "eclipse -clean". The auto-complete is NOT working. Here's my default file association for hbm.xml:

"XML Source Page Editor"

The hbm file begins with:


Code:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping ...>


I am using JDK1.4.2.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 1:25 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
show me the error log

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 2:55 pm 
Beginner
Beginner

Joined: Tue Jun 14, 2005 12:14 pm
Posts: 37
max wrote:
show me the error log


There is no error, but, I think I figured out the problem... Under "Preferences/Web and XML/XML Files/XML Source", under "Content assist", the space character is not in there by default. Once I added the space character in there, naturally all the attributes pops up as expected. However, I still don't have the property auto-completion as shown in your demo.

Liem


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 2:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmmm....try and open af cfg.xml and see if you get completion for <property name="hibernate.<ctrl+space>

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 3:07 pm 
Beginner
Beginner

Joined: Tue Jun 14, 2005 12:14 pm
Posts: 37
max wrote:
hmmm....try and open af cfg.xml and see if you get completion for <property name="hibernate.<ctrl+space>


OK... <control+space> does work for all the cfg.xml and hbm.xml files, include all the properties. I thought that the auto-completion is, well, auto, without <ctrl+space>. Thanks so much for your help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 23 posts ]  Go to page 1, 2  Next

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.