I am working on a application that is a child application of another application.my application has a independent database .the tables in my application will be using some data from parent application database.for that purpose i have used views based on joins from parent database table.I am using Hibernate 4,spring 3.2 backened at mysql. In the sub application i have mapped the entity for view. This view will be used by other entities as for join fetch ,lazy loading which is a troublesome. As far i know join fetch is applied for entities with child parent relationships. can we apply such relationships with views. "Moreover we cannot refer a view in a foreign key"... I am not able to draw a conclusion as I am new to hibernate. Please help me find a solution asap.
|