|
From: rpa_rio <do-...@jb...> - 2006-07-10 22:05:43
|
Well, i have two methods on Hibernate that loads a persistent instance from database, the first method Session.load that i was using retrieve an existing persistence instance but this isn't appropriate in case where i need check if the instance exists in database. So, when i use this method and the instance doesn't exists in database, then i get a instance with null values in all instance fields and this was causing the error on jboss serialization. Now i'm using Session.get, this method returns null if the instance doesn't exists in database and when jboss serialization executes the code everything works fine because you do some checks about null pointers. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956799#3956799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956799 |