-->
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.  [ 3 posts ] 
Author Message
 Post subject: how to insert a list of objects
PostPosted: Thu Oct 20, 2005 12:40 pm 
Newbie

Joined: Tue Aug 23, 2005 7:18 am
Posts: 5
Location: pune,India
hello,


i have to insert a list of objects(devices)
i am using this code:


Iterator iterator = devices.iterator();
while(iterator.hasNext()) {

device = (Device)iterator.next();

session.save(device);

}

but its not working ....
it gives me SqlGrammerException...

i am really strucked.please help me solving this problem

thanks in advance

prasad


Top
 Profile  
 
 Post subject: Re: how to insert a list of objects
PostPosted: Thu Oct 20, 2005 1:03 pm 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
http://www.hibernate.org/ForumMailingli ... AskForHelp

Show the stacktrace and you mapping file.

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 20, 2005 1:04 pm 
Senior
Senior

Joined: Thu Aug 04, 2005 4:54 am
Posts: 153
Location: Birmingham, UK
More information is necessary. i.e. a full stack trace, SQL generated, DB information, mapping, configuration.


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