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.  [ 2 posts ] 
Author Message
 Post subject: what the save method return?
PostPosted: Thu Sep 01, 2005 11:51 pm 
Newbie

Joined: Sun Aug 14, 2005 9:34 pm
Posts: 5
in spring.jar,
the method,
Serializable org.springframework.orm.hibernate3.HibernateTemplate.save(Object arg0) throws
DataAccessException

what's the result of this method?
what's in the "Serializable" class?

i am a new one to hibernate. and i want to save some new data to the database, here i don't know what this method return cause i want to determine whether it save the data or not.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 02, 2005 2:17 am 
Expert
Expert

Joined: Thu Dec 04, 2003 12:36 pm
Posts: 275
Location: Bielefeld, Germany
What about having a look at the source resp. the JavaDoc? :)

Quote:
@return the generated identifier


The generated identifier is returned which -in "database language"- is the primary key. Serializable is no class, but an interface which is implemented by Long, Integer etc. - have a look at the java.lang package (JDK).

Best regards
Sven

_________________
Please don't forget to give credit, if this posting helped to solve your problem.


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