how to update domain with hql that has nested property?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


how to update domain with hql that has nested property?



I have RaceRegistration class that has a property of type Participant which has attribute bibNumber. I would like to set all bibNumbers belonging to an event to null. The following hql doesn's work. It is giving the error. So it looks like it cannot recognize r.participant.bibNumber.


node to traverse cannot be null!. Stacktrace follows:
java.lang.IllegalArgumentException: node to traverse cannot be null!



How can i update nested attribute of a domain class?


RaceRegistration.executeUpdate("update RaceRegistration r set r.participant.bibNumber = null" +
"where compositeEvent=:comp", [comp: compositeEvent ])









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Or0UFhoa,yuV1QLKZHNRzPIYO52,d RQUG7bEcxfY DYF8FlrlYcZg OcL2lbDV,w6yB81ns2R4XgvPxc,x0W JS NuF,UriGj
gNV0,w,6Uan,V9Gl20rHv1MrLljP57LLv5rcoU72 tmqCa5wiyv2tr6tZRONV eje

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results