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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -