-->
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 a new line in persistent ArrayList?
PostPosted: Thu Aug 05, 2010 9:31 am 
Newbie

Joined: Thu Aug 05, 2010 9:09 am
Posts: 2
Hi,

First of all, thanks for reading this post.
Please, help me!
I do not know How can I insert a new line in an persistent ArrayList. I mean that I got an ArrayList from the database, and I want to insert a new line in this ArrayList, but When I tries to update the list, this error message is shown to me:

18:40:19,300 INFO [DefaultLoadEventListener] Error performing load command
org.hibernate.ObjectNotFoundException: No row with the given identifier exists

I was jut trying to do an update in these ArrayList. I am using JSF and in an <rich:dataTable I am loading the persistent ArrayList, then I am inserting a new line on the ArrayList, but the error above is saying that no update is possible.

I just want to add a new line in the ArrayList, How can I do that?
Let me show an example:

List<Sapatos> sapatos = new ArrayList<Sapatos>();

Sapato sapato = new Sapato();
sapato.setMarca("Nike");

sapatos.add(sapato);
....
....

Hibernate.....
session.save(sapatos);
...

And Afther that, I take this same list and I try to run an update, and it is not working, please let me know if you cannot undertand my bad Inglish.

Best Regards


Top
 Profile  
 
 Post subject: Re: How to insert a new line in persistent ArrayList?
PostPosted: Thu Aug 05, 2010 1:16 pm 
Newbie

Joined: Thu Aug 05, 2010 9:09 am
Posts: 2
I do not know how to solve this problem, I will feel very happy with your help.

Thank you.


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.