-->
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: how to insert java object into database by using hibernate
PostPosted: Fri Mar 16, 2007 2:44 am 
Newbie

Joined: Tue Feb 27, 2007 9:18 am
Posts: 7
hi,

just take example

class Value{
int a;
int b;
}

table is look like this
table name: values(x num, y num)


java object : Value val = new Val();
val.setA(10);
val.setB(20);



how to write query in program to isert this objet.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 16, 2007 3:11 am 
Regular
Regular

Joined: Sun Sep 17, 2006 2:48 am
Posts: 81
Location: California
That would be there in the hibernate documentation.


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.