Let me start by showing you the entity model:
1. VideoStream.java
VideoStreamGenerated.java
VideoStreamLive.java
VideoStreamArchived.java
VideoStreamDestination.java
VideoStream_JPA.ds.xml
VideoStreamGenerated_JPA.ds.xml
VideoStreamLive_JPA.ds.xml
VideoStreamDestination_JPA.ds.xml
Given this setup, I can fetch against VideoStream_JPA.ds.xml and the results will actually contain all of the values from the concrete VideoStream implementation. Which is highly desirable. However, when I fetch from VideoStreamDestination_JPA.ds.xml the child stream only contains the fields specifically declared in VideoStream_JPA.ds.xml and not the fields from the concrete VideoStream implementation.
Is there a mechanism where I can easily have it return the actual concrete classes fields in the child entity? In our use case, there are actually 3 concrete implementations of VideoStream.java, and I would like to be able to return all destinations that belong to a user in a single fetch, but I need the concrete VideoStream class to work with on the client.
Your help is greatly appreciated.
1. VideoStream.java
VideoStreamGenerated.java
VideoStreamLive.java
VideoStreamArchived.java
VideoStreamDestination.java
VideoStream_JPA.ds.xml
VideoStreamGenerated_JPA.ds.xml
VideoStreamLive_JPA.ds.xml
VideoStreamDestination_JPA.ds.xml
Given this setup, I can fetch against VideoStream_JPA.ds.xml and the results will actually contain all of the values from the concrete VideoStream implementation. Which is highly desirable. However, when I fetch from VideoStreamDestination_JPA.ds.xml the child stream only contains the fields specifically declared in VideoStream_JPA.ds.xml and not the fields from the concrete VideoStream implementation.
Is there a mechanism where I can easily have it return the actual concrete classes fields in the child entity? In our use case, there are actually 3 concrete implementations of VideoStream.java, and I would like to be able to return all destinations that belong to a user in a single fetch, but I need the concrete VideoStream class to work with on the client.
Your help is greatly appreciated.
Comment