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
|