Hello,I'm currently testing the Play! Framework which has EBean built-in. Now I'm facing the problem, that my entity has a reference to an entity which doesn't exist anymore. For example: I have a column "id_parent" with the value "2" but in the database there isn't a row with id "2". And that's why I'm getting this error:[EntityNotFoundException: Bean has been deleted - lazy loading failed]But when I try to access a reference which doesn't exist anymore, I expect the result being null. Is there a way to accomplish this? In Hibernate there's a @NotFound annotation which does exactly that.Thanks for your help!
So if I try to access a row from table B via the reference in table A, I expect EBean returning null, instead of an EntityNotFoundException. That's also, for example, how the EntityFramework in .Net would handle this. In Hibernate there's a @NotFound annotation, which does the same. Now my question, is there anything similar in EBean?
Thanks
--
---
You received this message because you are subscribed to the Google Groups "Ebean ORM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ebean+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
> This does not work for Model methods.What does this mean?
--
---
You received this message because you are subscribed to a topic in the Google Groups "Ebean ORM" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ebean/4lU_ZKcrX0k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ebean+un...@googlegroups.com.