Note that there are some explanatory texts on larger screens.

plurals
  1. POone to many- Showing list of children related to parent id
    primarykey
    data
    text
    <p>I have two domain class</p> <p>1)</p> <pre><code>package opfwflowmonitor import java.io.Serializable; class OpfWF_Entry implements Serializable{ String name Date create_date static hasOne=[siteName:OpfWF_SiteName, currentStepStatus:OpfWF_CurrentStepStatus,currentStepName:OpfWF_CurrentStepName] static hasMany = [historySteps:OpfWF_HistoryStepsInfo] static mapping = { table name: "OS_WFENTRY", schema: "GSI" version false cache true historySteps cache:true sort id:"desc" columns{ name column:'NAME' create_date column:'CREATE_DATE' } } } </code></pre> <p>And</p> <pre><code>package opfwflowmonitor import java.util.Date; class OpfWF_HistoryStepsInfo { Long entry_id Long action_id Long step_id Date start_date Date finish_date String status static belongsTo = [historyEntry: OpfWF_Entry] static mapping = { table name: "OS_HISTORYSTEP", schema: "GSI" version false cache true historyEntry cache: true sort id:"desc" id generators: 'assigned' columns{ id column:'ID' action_id column:'ACTION_ID' step_id column:'STEP_ID' start_date column:'START_DATE' finish_date column:'FINISH_DATE' status column:'STATUS' // ENTRY_ID column:'ENTRY_ID' } historyEntry column:'entry_id' historyEntry insertable:false historyEntry updateable:false } String toString() { "$id" } } </code></pre> <p>How i can show list of all historystep with all properties when i select OpfWF_Entry ?</p> <p>How to get a list table of childs(with all properties of history table) when user click on list of OpfWF_Entry table's record.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload