-->
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: Problem displaying the Hibernate Entity Model
PostPosted: Thu May 18, 2006 6:14 am 
Newbie

Joined: Thu May 18, 2006 5:22 am
Posts: 1
Location: Germany
Hello All,

first of all thank you for that Software package, it really looks promising to me.

However, after trying to understand the documentation and following some of the examples, if have a problem with the display of the hibernate entity model in the hibernate console perspective:

As far as I understand from the documentation, i should be able to see a graphical representation or reverse engineered database tables in the entity model tab. Unfortunately the part
Code:
A class diagram is available in the view named "Hibernate Entity Model". It will show the model when the Configuration node in a Hibernate Console Configuration is selected.

is not too clear for me.

In the Hibernate Configurations i have the package i set up including an entry for "Configuration", "Session factory" and "database" under which i can see the tables contained in my database, but no matter which of those parts i select, i only have a blank entity model tab.

I already set up the logging facility to debug, but i will not get an error or warning in the error tab.

Is there any point or step that i am missing to show the graph?

Is it enough to install the hibernate tools for that, or do i need additional stuff, or even the full hibernate package for this function?

Any help is really appreciated.
Olli


Eclipse Version: Version: 3.1.2 Build id: M20060118-1600
Hibernate tools version: 3.1.0.beta5

Name and version of the database you are using: postgreSQL 7.4.7


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 12:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Does the configuration actually contain any classes ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: ¿how did you solve your problem?
PostPosted: Fri Sep 08, 2006 8:18 am 
Newbie

Joined: Fri Apr 28, 2006 12:07 pm
Posts: 14
Hello! I have read your post and I suposse you finally saw the draw in the "hibernate entity model" view. Can you tell me what was your problem? Maybe it could be my same problem.

thanks for your time


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 9:41 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Using Eclipse SDK 3.2.
Pojos with EJB3 and H3 annotations.

max wrote:
Does the configuration actually contain any classes ?


I'm pointing to my pojo class directory in Console configuration classpath:
- /<projectname>/classes

But I get no classes in configuration.
And no error when instantiating session factory.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 9:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
so your hibernate.cfg.xml does not list any mappings...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 12:12 pm 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
max wrote:
so your hibernate.cfg.xml does not list any mappings...


Yep. :-(

How to make it auto lookup (via @Entity) - as in ejb3 environment?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 13, 2006 12:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
as per doc we don't support autodiscovery from the plugin (yet).

use an annotaitongconfiguraiton and list them to get them.

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