Parent « Field « JPA Q&A





1. Make parent object from distinct field    forum.hibernate.org

Hi, I have a table (lets call it child) with the parent (batch name) in one field as a string. CHILD_ID, BATCH_NAME, CHILD_NAME, CHILD_DATE I want to get all distinct values from this table and make a parent object from this, and create child objects from it (so all child rows with the same string value). Does anyone know what is ...