grails-data-mapping
grails-data-mapping copied to clipboard
GORM - Groovy Object Mapping
While upgrading from grails 3.1.15 to 3.3.11 we noticed a regression on the unique constraint. More specifically, a multi-column unique constraint on the same domain class. The Domain has a...
Now with posgresql BD Book.findAllByYearInList([]) fails with wrong sql exception "in ()" At result, dummy code with isEmpty() checking have to be written additionally to business code Will try to...
### Task List - [x] Steps to reproduce provided - [x] Example that reproduces the problem uploaded to Github - [x] Full description of the issue provided (see below) ###...
Hi Grails Team, How do I enable RestfulController to auto-map the dynamic fields to domain classes implementing MongoEntity? I have a domain class as below: ``` class Company implements MongoEntity...
### Steps to Reproduce Let's have a domain using ``` class MyDomain { ... static mapping = { id generator: 'sequence' } ... } ``` Since generation of each id...
I'm currently migrating my grails code from version 2.5.6 to 3.3.9. On 3.3.9, I observed this weird behaviour. There's an abstract class (in src/main/groovy) which contains a hasMany relationship. ```...
Hi All, In my project we have extensively used hibernate criteria, which has now deprecated in newer releases. I tried to replace the same with the JPA criteria but faced...
The Hibernate Criteria API has been deprecated in Hibernate. So we have to move to the JPA Criteria API in GORM. This may be a good time to deprecate CriteriaBuilder...
Given the following domain classes ``` class A { String a int b boolean c Set fs Set efs static embedded = [ 'efs' ] } ``` ``` class X...
In migrating a grails 3.2.11 app to 3.3.8, which migrates to Gorm 6.1, JPA annotated entities no longer work. TagLink.groovy ``` import javax.persistence.*; import javax.validation.constraints.Min; @Entity @Table(name = "tag_links") public...