java - Creating a Hibernate reference in a client app -
i want add relation detached entity. want use entity reference created id. examples have found , understood need configured db connection create references. in example:
reference = session.byid( employeeentity.class ).getreference( 1 );
i'm using in client program , accessing db indirectly through remote ejbs, don't have direct access db. possible create entity reference without db connection?
short answer: no.
long answer: in theory write own persistence strategy , plug hibernate talk remote ejbs, lot of work, doesn't have notable benefits except making expert of rather obscure corner of hibernate environment.
Comments
Post a Comment