Skip to content

Commit 74cba34

Browse files
committed
updated to 7.2.0
1 parent 93b45d1 commit 74cba34

8 files changed

Lines changed: 37 additions & 31 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.7.0] - 2020-03-04
8+
9+
### Dependencies
10+
- CUBA 7.2
11+
712
## [0.6.0] - 2019-09-20
813

914
### Dependencies

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[ ![Download](https://api.bintray.com/packages/mariodavid/cuba-components/cuba-component-entity-soft-reference/images/download.svg) ](https://bintray.com/mariodavid/cuba-components/cuba-component-entity-soft-reference/_latestVersion)
22
[![license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
33
[![Build Status](https://travis-ci.org/mariodavid/cuba-component-entity-soft-reference.svg?branch=master)](https://travis-ci.org/mariodavid/cuba-component-entity-soft-reference)
4-
[![Coverage Status](https://coveralls.io/repos/github/mariodavid/cuba-component-entity-soft-reference/badge.svg)](https://coveralls.io/github/mariodavid/cuba-component-entity-soft-reference)
54

65
# CUBA Platform Component - Soft References for Entities
76

@@ -17,7 +16,7 @@ Instead it is just a "weak" or "soft" reference to another entity.
1716

1817
#### Example: Customer - Order
1918

20-
Let's take the Customer <>--> Order example. A customer can have mutiple orders. We model that as an composition in CUBA.
19+
Let's take the Customer <>--> Order example. A customer can have multiple orders. We model that as an composition in CUBA.
2120
This means, that there will be a column "customer_id" in the Order table, which stores the primary key of the customer in
2221
the Order Table. For every Order, there is a Customer associated to it.
2322

@@ -29,7 +28,7 @@ there will be no foreign key association on the database. Instead the following
2928
### Foreign keys are valuable, why would someone not want to have them?
3029

3130
Correct. For pretty much every case, there is no need to use soft references. Since it misses all the cool features of
32-
referencial integrity, there are a lot of downsides. Why do we still need them? Here is an example:
31+
referential integrity, there are a lot of downsides. Why do we still need them? Here is an example:
3332

3433
#### Example: Customer - Order - Comment
3534

@@ -115,5 +114,4 @@ private SoftReferenceFormFieldGenerator softReferenceFormFieldGenerator;
115114
protected void onInit(InitEvent event) {
116115
softReferenceFormFieldGenerator.initSoftReferenceFormField(form, myFormInstanceContainer, "mySoftReferenceProperty");
117116
}
118-
```
119-
117+
```

build.gradle

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
buildscript {
3-
ext.cubaVersion = '7.1.0'
3+
ext.cubaVersion = '7.2.0'
44
repositories {
55

66
maven {
@@ -190,9 +190,21 @@ configure([globalModule, coreModule, guiModule, webModule]) {
190190
test.finalizedBy(project.tasks.coberturaCheck)
191191

192192
sourceSets {
193-
main { groovy { srcDirs = ["src"] } }
194-
test { groovy { srcDirs = ["test"] } }
193+
main {
194+
groovy { srcDirs = ["src"] }
195+
// new config
196+
java.outputDir = new File(project.buildDir, "classes/main")
197+
groovy.outputDir = new File(project.buildDir, "classes/main")
198+
}
199+
test {
200+
groovy { srcDirs = ["test"] }
201+
// new config
202+
java.outputDir = new File(project.buildDir, "classes/test")
203+
groovy.outputDir = new File(project.buildDir, "classes/test")
204+
}
195205
}
206+
sourceSets.main.output.classesDirs.setFrom(new File(project.buildDir, "classes/main"))
207+
sourceSets.test.output.classesDirs.setFrom(new File(project.buildDir, "classes/test"))
196208
}
197209

198210
configure(globalModule) {
@@ -234,15 +246,8 @@ configure(coreModule) {
234246
testRuntime(hsql)
235247
}
236248

237-
task cleanConf(description: 'Cleans up conf directory') {
238-
doLast {
239-
def dir = new File(cuba.tomcat.dir, "/conf/${modulePrefix}-core")
240-
if (dir.isDirectory()) {
241-
ant.delete(includeemptydirs: true) {
242-
fileset(dir: dir, includes: '**/*', excludes: 'local.app.properties')
243-
}
244-
}
245-
}
249+
task cleanConf(description: 'Cleans up conf directory', type: Delete) {
250+
delete "$cuba.appHome/${modulePrefix}-core/conf"
246251
}
247252

248253
task deploy(dependsOn: [assemble, cleanConf], type: CubaDeployment) {
@@ -309,7 +314,7 @@ configure(guiModule) {
309314
task deployConf(type: Copy) {
310315
from file('src')
311316
include "de/diedavids/cuba/entitysoftreference/**"
312-
into "$cuba.tomcat.dir/conf/${modulePrefix}"
317+
into "$cuba.appHome/${modulePrefix}/conf"
313318
}
314319
}
315320

@@ -337,23 +342,16 @@ configure(webModule) {
337342
task deployConf(type: Copy) {
338343
from file('src')
339344
include "de/diedavids/cuba/entitysoftreference/**"
340-
into "$cuba.tomcat.dir/conf/${modulePrefix}"
345+
into "$cuba.appHome/${modulePrefix}/conf"
341346
}
342347

343348
task clearMessagesCache(type: CubaClearMessagesCache) {
344349
appName = "${modulePrefix}"
345350
}
346351
deployConf.dependsOn clearMessagesCache
347352

348-
task cleanConf(description: 'Cleans up conf directory') {
349-
doLast {
350-
def dir = new File(cuba.tomcat.dir, "/conf/${modulePrefix}")
351-
if (dir.isDirectory()) {
352-
ant.delete(includeemptydirs: true) {
353-
fileset(dir: dir, includes: '**/*', excludes: 'local.app.properties')
354-
}
355-
}
356-
}
353+
task cleanConf(description: 'Cleans up conf directory', type: Delete) {
354+
delete "$cuba.appHome/${modulePrefix}/conf"
357355
}
358356

359357
task deploy(dependsOn: [assemble, cleanConf], type: CubaDeployment) {
@@ -375,9 +373,9 @@ task restart(dependsOn: ['stop', ":${modulePrefix}-core:deploy", ":${modulePrefi
375373
socket(server: 'localhost', port: '8787')
376374
}
377375
}
378-
start.execute()
379376
}
380377
}
378+
restart.finalizedBy start
381379

382380

383381
apply from: 'extra.gradle'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.6.6-SNAPSHOT
1+
version=0.7.0-SNAPSHOT

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip

modules/core/src/de/diedavids/cuba/entitysoftreference/app.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ cuba.availableLocales = English|en
2727
cuba.localeSelectVisible = false
2828
cuba.restApiUrl = http://localhost:8080/entity-soft-reference-portal/api
2929
cuba.webAppUrl = http://localhost:8080/entity-soft-reference
30+
cuba.security.rolesPolicyVersion=1
31+
cuba.security.defaultPermissionValuesConfigEnabled=true
32+
cuba.security.minimalRoleIsDefault=false

modules/web/src/de/diedavids/cuba/entitysoftreference/web-app.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ cuba.availableLocales = English|en
3939
cuba.localeSelectVisible = false
4040
cuba.restApiUrl = http://localhost:8080/entity-soft-reference-portal/api
4141
cuba.webAppUrl = http://localhost:8080/entity-soft-reference
42+
cuba.rest.securityScope=GENERIC_UI

studio-intellij.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
<option name="isOneToOneIndex" value="false" />
55
<option name="isNewFkConstraintNaming" value="false" />
66
<option name="isJoinedInheritanceDeleteCascade" value="false" />
7+
<option name="stateVersion" value="1" />
78
</component>
89
</project>

0 commit comments

Comments
 (0)