Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 2d6b126

Browse files
authored
Merge pull request #390 from grails/upgradeNotes
Update GORM 7.1 Docs
2 parents 849dfa2 + 20e78d1 commit 2d6b126

File tree

4 files changed

+25
-21
lines changed

4 files changed

+25
-21
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ subprojects { subproject ->
182182

183183
if(isPluginProject) {
184184
group "org.grails.plugins"
185-
version project.rootProject.version - '.RELEASE'
185+
version project.rootProject.version
186186
}
187187
else {
188188
group "org.grails"

docs/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ asciidoctor {
6060
'icons' : 'font',
6161
'reproducible' : '',
6262
'version' : project.version,
63-
'pluginVersion' : project.version - '.RELEASE',
63+
'pluginVersion' : project.version,
6464
'sourcedir' : "${project.projectDir}/src/main/groovy"
6565
}
6666

docs/src/docs/asciidoc/introduction/releaseHistory.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
==== GORM 7.1
22

3-
GORM 7.1 brings support for Groovy 3
4-
5-
* Autowire the bean by type in the Data Service.
3+
* GORM 7.1 brings support for Apache Groovy 3
4+
* Default autowire the bean by type in the Data Service
5+
* Support for Java 14
6+
* Spring 5.3
7+
* Spring Boot 2.5
8+
* Hibernate 5.5
69
710
==== GORM 7.0
811

docs/src/docs/asciidoc/introduction/upgradeNotes.adoc

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
==== Dependency Upgrades
22

3-
GORM 7.0 supports a minimum version of Java 8, Hibernate 5.3.x and Spring 5.2.x.
3+
GORM 7.1 supports Apache Groovy 3 and Java 14 Hibernate 5.5.x and Spring 5.3.x.
44

55
Each of these underlying components may have changes that require altering your application. These changes are beyond the scope of this documentation.
66

7+
==== Default Autowire By Type inside GORM Data Services
78

8-
==== Package Restructuring and Deprecations
9+
A Grails Service (or a bean) inside GORM DataService will default to autowire by-type, For example:
910

10-
Previously deprecated classes have been deleted from this release and in order to support Java 11 modules in the future some package re-structuring has occurred.
11+
_./grails-app/services/example/BookService.groovy_
12+
```
13+
package example
1114

12-
==== Changes to Proxy Handling
15+
import grails.gorm.services.Service
1316

14-
GORM no longer creates custom proxy factories nor automatically unwraps Hibernate proxies.
17+
@Service(Book)
18+
abstract class BookService {
1519

16-
This makes it more consistent to the way regular Hibernate behaves and reduces the complexity required at the framework level.
20+
TestService testRepo
1721

18-
You may need to alter `instanceof` checks are manually unwrap proxies in certain cases.
22+
abstract Book save(String title, String author)
1923

20-
==== Module `grails-validation` Deprecated and Removed
24+
void doSomething() {
25+
assert testRepo != null
26+
}
27+
}
28+
```
2129

22-
In GORM 6.x the `grails-validation` module was deprecated and replaced by `grails-datastore-gorm-validation`.
30+
Please note that with autowire by-type as the default, when multiple beans for same type are found the application with throw Exception. Use the Spring `@Qualifier annotation for https://docs.spring.io/spring-framework/docs/5.3.10/reference/html/core.html#beans-autowired-annotation-qualifiers[Fine-tuning Annotation Based Autowiring with Qualifiers].
2331

24-
Deprecated interfaces were maintained for backwards compatibility. In GORM 7.0 these deprecated classes have been removed and all dependency on `grails-validation` removed.
25-
26-
==== Transactions Now Required for all Operations
27-
28-
Previous versions of Hibernate allowed read operations to be executed without the presence of a declaration transaction.
29-
30-
Hibernate 5.2 and above require the presence of an active transaction. If see a `javax.persistence.TransactionRequiredException` exception it means your method lacks a `@Transactional` annotation around it.

0 commit comments

Comments
 (0)