Hi there,
im using Hibernate 4 and have an architecture with two databases. Therefor i have two session-factories. What i want to do now, and that drives me nuts is the following. I have Entity A from DB A and Entity B from DB B (so both are mapped from different configs in different session-factories). Entity A has a property with Entity B. I want to have hibernate fetching them (using @NamedNativeQuery and @Loader(namedQuery = ".,..."), that is because i don't get Entity B from a Table, but from a Query).
Problem understandable?? hope so
Would be great to have a discussion on this here
greetz and thanks
Rob
Comments