grails-2.5

Grails 2.5.1 (hibernate 3) criteria multiple joins to same table

我的未来我决定 提交于 2019-12-20 06:39:19
问题 I've found similar questions, but no answers. class SomeDomain { static hasMany= [productData:ProductData] } ProductData is simple type/value pair I'm trying to find all SomeDomains that have multiple products of certain type (in a loop). Currently the relevant portion of the criteria looks like: SomeDomain.createCriteria.list { somedata.each { type, value -> productData { eq("type", type) eq("value", value) } } } However, this generates only a single join with the SQL: from some_domain this_

Differences between the Grails @Transactional vs. the Spring @Transactional annotations

女生的网名这么多〃 提交于 2019-12-03 05:54:44
问题 Well there was a point in the Grails Declarative Transactions. It said: The grails.transaction.Transactional annotation was first introduced in Grails 2.3. Prior to 2.3, Spring's @Transactional annotation was used. But I can't seem to find out what the main difference between those two annotations is. Why was the Spring's annotation not used in future releases? 回答1: I would like to address this comment "However, in 2.3 the team felt it was a good idea (I disagree personally) to introduce a

Differences between the Grails @Transactional vs. the Spring @Transactional annotations

余生长醉 提交于 2019-12-02 19:19:11
Well there was a point in the Grails Declarative Transactions . It said: The grails.transaction.Transactional annotation was first introduced in Grails 2.3. Prior to 2.3, Spring's @Transactional annotation was used. But I can't seem to find out what the main difference between those two annotations is. Why was the Spring's annotation not used in future releases? I would like to address this comment "However, in 2.3 the team felt it was a good idea (I disagree personally) to introduce a new annotation which could be applied not only to Services but also to Controllers.” It was never the primary

Grails 2.5.1 (hibernate 3) criteria multiple joins to same table

て烟熏妆下的殇ゞ 提交于 2019-12-02 11:26:54
I've found similar questions, but no answers. class SomeDomain { static hasMany= [productData:ProductData] } ProductData is simple type/value pair I'm trying to find all SomeDomains that have multiple products of certain type (in a loop). Currently the relevant portion of the criteria looks like: SomeDomain.createCriteria.list { somedata.each { type, value -> productData { eq("type", type) eq("value", value) } } } However, this generates only a single join with the SQL: from some_domain this_ inner join product_data productdata_a1_ on this_.id=productdata_a1_.some_domain_id where (productdata