-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate Tools for Eclipse and Ant version 3.1 beta 1
PostPosted: Tue Nov 08, 2005 7:50 am 
Beginner
Beginner

Joined: Mon Jan 24, 2005 11:56 am
Posts: 24
Hi,

We have download and set up Hibernate Tools for Eclipse ver 3.1 beta 1.

Below url contains the main features of this plug in:
[url]http://www.hibernate.org/hib_docs/tools/eclipse/newandnoteworthy/hibernate-eclipse-news-3.1.0.beta1.html[/url]

Well, there are some features mentioned in above url but we could not work with it:

1) Hibernate Entity Model: We could not add any entity to it! we try to drag and drop or make some right clicks, but nothing happened. We though that it shows some graphs base on mapping files but it seems not. Aame thing happend for Hibernate Relational Model. The hibernate configuration is set correctly and it validates all mapping files.

2) Hibernate Reverse Engineering Tools: We could not find it! We make a .reveng.xml file but the (Hibernate Reverse Engineering Tools) window does not show up when we open this file

3) The Eclipse does not highlighs auto-completion and syntax highlighting.

We are using jdk 1.5._01 for Eclipse, and we have checked "Enable Hibernate 3 Support" in project property and set "Default Hibernate Console configuration"

Any help?

Regards,
Alireza Fattahi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 6:28 am 
Beginner
Beginner

Joined: Mon Jan 24, 2005 11:56 am
Posts: 24
Hi,

Every thing solved by downloading JBossIde-1.5-RC1 which boundels Hibernate Tool!

The only thing remaind is "Hibernate Entity Model" and " Hibernate Relational Model" ! They does not show any thing, How can we work with them?

Regards,
Alireza Fattahi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 10, 2005 6:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you need to click on the Configuration node - then they should show the visualization. in the future they will show up more often ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 11:24 am 
Beginner
Beginner

Joined: Mon Jan 24, 2005 11:56 am
Posts: 24
Hi,

Tricky ;) What about Hibernate Releational Model, how can we make it show some relation.
And one more think:

I have made an Event and a Person Entity as described in Hibernate tourial. Person have set of events and event has participants. The "Hibernate Entity Model" shows the entities but there is no line for displaying the relations.
Here are mappings:

Code:
<hibernate-mapping>

    <class name="sample.Person" table="PERSON">
        <id name="id" column="PERSON_ID">
            <generator class="increment"/>
        </id>
        <property name="age"/>
        <property name="firstname"/>
        <set name="events" table="Person_Event">
            <key column="Person_ID"></key>
            <many-to-many column="EVENT_ID" class="sample.Event"/>
            <many-to-many column="EVENT_ID" class="sample"></many-to-many>
        </set>
    </class>

</hibernate-mapping>


Code:
<hibernate-mapping>

    <class name="sample.Event" table="EVENTS">
        <id name="id" column="EVENT_ID">
            <generator class="increment"/>
        </id>
        <property name="date" type="timestamp" column="EVENT_DATE"/>
        <property name="title"/>
       
        <set name="participants" table="Person_Event" inverse="true">
            <key column="EVENT_ID"></key>
            <many-to-many column="PERSON_ID" class="sample.Person"/>
        </set>
    </class>

</hibernate-mapping>


Any comments!

Regards,
Alireza Fattahi


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 1:12 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm they should appear in entity model. The relational model doesnt have lines yet.

put a test case in a jira

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