-->
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.  [ 4 posts ] 
Author Message
 Post subject: What does org.hibernate.Session.save(String,Obj) do?
PostPosted: Tue Sep 27, 2005 6:24 am 
Newbie

Joined: Thu Sep 22, 2005 4:32 am
Posts: 7
Location: Italy
What does the call

Code:
   public Serializable save(String entityName, Object object) throws HibernateException;


do in hibernate 3.0.5?

The javadoc is a cut'n'paste of the signature without entityName, and I couldn't figure out looking at the SessionImpl's code: it simply creates a SaveOrUpdateEvent, but I don't know what are the consequences...

I think it could be appropriate to file a documentation bug, since the javadoc is invalid (it doesn't describe the entityName parameter).

Thanks in advance,

Mauro Michele


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 6:36 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Entity name is an entity name.


Top
 Profile  
 
 Post subject: what about inheritance?
PostPosted: Tue Sep 27, 2005 8:01 am 
Newbie

Joined: Thu Sep 22, 2005 4:32 am
Posts: 7
Location: Italy
so what?
What does it happen if you specify an Entity?

Hibernate tries to cast the object to that object? Fetches the appropriate mapping?

What are the consequencies on inheritance trees?

I have problems with example 10.1.5, and I stumbled on that method while searching for a way to make Hibernate populate the tables I want...

Michele


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 27, 2005 8:04 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
You can use entity names instead of entity class names. Nothing of what you say has any relationship with that. If the reference documentation doesn't help, maybe you want to have a look at the test suite for code examples.


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