user
11/26/2025, 12:11 PMjdaugherty
11/26/2025, 1:51 PMuser
11/26/2025, 3:08 PMgiangio
11/26/2025, 8:27 PMclass TCompany implements GormEntity, MultiTenant<TCompany> {
Long id
LocalDateTime dateCreated
String name
Boolean isOwned
Boolean isSupplier
Boolean isClient
}
And controllers like this:
class CompanyController implements Controller {
This will help with any IDE supporting the Groovy language. I have no recent experiences with Eclipse or VSCode but it's a starting point and the boilerplate code is not much of a problem.giangio
11/26/2025, 8:30 PM.gsp filesgiangio
11/26/2025, 8:39 PMbelongsTo associations:
TActivity activity
static belongsTo = [
activity: TActivity,
]
And this for hasMany associations:
Set<TActivityProfile> profiles
static hasMany = [
profiles: TActivityProfile,
]
This way you have autocomplete for associations as welluser
11/27/2025, 1:28 AMjdaugherty
11/27/2025, 2:58 AM@SelfType(MyType) for hintsjdaugherty
11/27/2025, 2:58 AMjdaugherty
11/27/2025, 2:59 AM