-->
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.  [ 6 posts ] 
Author Message
 Post subject: Hello with Message class example
PostPosted: Wed Oct 25, 2006 9:10 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
Hi,

I have implemented the example HelloWorld, and xhen I launch the app I get the following error:

----------------------
Exception in thread "main" org.hibernate.MappingException: Unknown entity: com.presseinfo.netful.model.catalog.product.offer.Offer
----------------------

I use in place annotations and hsqldb database with hibernate 3.2

tx


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 25, 2006 11:34 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
The Hello World example has no "com.presseinfo.netful.model.catalog.product.offer.Offer" entity, it only has Message.java. Maybe you want to download the working source code from http://caveatemptor.hibernate.org/


Top
 Profile  
 
 Post subject: reply
PostPosted: Wed Oct 25, 2006 11:40 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
Yes,

In fact I have a difficulty generating the schema:
the error is:
-----------------
SessionFactoryObjectFactory - not binding factory to JNDI, no JNDI name configured
-----------------

and I dont know how to configure a JNDI name with hibernate conf

thx


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 25, 2006 12:58 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
1. This is an INFO message. Ignore it if it bothers you.
2. Follow chapter 2 of Java Persistence with Hibernate step by step.


Top
 Profile  
 
 Post subject: JNDI INFO
PostPosted: Thu Oct 26, 2006 2:42 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
Hi,

I have read it carefully and I found it very instructive.

But I had a question : what is java:/hibernate/MySessionFactory

Is it, as I suppose, an implementation class of SessionFactory ?
And if so, how should I implement it (I need an advice) ?

Third: I work on a e-gestion application, and we use Sun App server.
Do you better recommand JBoss, and if so for what reasons ?

Thanks for your book, very valuable.
Regards,

---
Pierre-Henry Perret
Eclipse/ECF committer


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 26, 2006 4:32 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
JNDI binding of the SessionFactory is explained in the last section of chapter 2 in JPwH. It's nothing you need if you don't know what it is.

Hibernate is best with JBoss Application Server, you get a few extra features (out of the box EJB 3.0 integration, extra deployment options, default persistence engine for other JBoss JEMS products like Portal, jBPM, Seam).

Having said that, Hibernate works fine in all other application servers.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.