HI,
i get the following Exception during loading of an Entity:
javax.persistence.EntityNotFoundException: Unable to find hji.entities.Customer with id 0
caused by the following code:
@ManyToOne
@JoinColumn(name = "FZAG#", referencedColumnName =
KDNNR",nullable=false)
private Customer storageDealer=null;
..and yes this is correct because id 0 really no exist in the referenced table. (long
story why...and currentlynot possible to be changed)
All i want is that in the case when ID is 0 the Customer will be set to and no exception
will stop loading the entities ! does anyone know how to do this?
tx
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061987#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...