Working on grails 3 application. My domain structure is defined below:
Job{
Integer id
String title
Date publishedDate
}
JobType{
Integer id
String name
}
JobJobTypeMap{
String jobId
String jobTypeId
}
For example,
**Job**
id title
1 job1
2 job2
**JobType**
id name
1 govt
2 private
**JobJobTypeMap**
jobId jobTypeId
1 1
1 2
2 2
I need to get list of jobs (offset and max attributes and order published date descending) with particular jobType.
Kindly, don't ask me to change the domain structure.
Any suggestions would be appreciated