Skip to content

Commit 128d15d

Browse files
authored
* Allow a primary key to be a Ref. (#49)
Relates to #44
1 parent a10a9fc commit 128d15d

File tree

17 files changed

+35
-34
lines changed

17 files changed

+35
-34
lines changed

README.adoc

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,29 +45,29 @@ Maven (Java)::
4545
<dependency>
4646
<groupId>st.orm</groupId>
4747
<artifactId>storm-java21</artifactId>
48-
<version>1.6.1</version>
48+
<version>1.6.2</version>
4949
<scope>compile</scope>
5050
</dependency>
5151
<dependency>
5252
<groupId>st.orm</groupId>
5353
<artifactId>storm-core</artifactId>
54-
<version>1.6.1</version>
54+
<version>1.6.2</version>
5555
<scope>runtime</scope>
5656
</dependency>
5757
----
5858
Gradle (Java)::
5959
+
6060
[source,groovy]
6161
----
62-
implementation 'st.orm:storm-java21:1.6.1'
63-
runtimeOnly 'st.orm:storm-core:1.6.1'
62+
implementation 'st.orm:storm-java21:1.6.2'
63+
runtimeOnly 'st.orm:storm-core:1.6.2'
6464
----
6565
Gradle (Kotlin)::
6666
+
6767
[source,groovy]
6868
----
69-
implementation 'st.orm:storm-kotlin:1.6.1'
70-
runtimeOnly 'st.orm:storm-core:1.6.1'
69+
implementation 'st.orm:storm-kotlin:1.6.2'
70+
runtimeOnly 'st.orm:storm-core:1.6.2'
7171
----
7272
====
7373

@@ -1200,15 +1200,15 @@ Maven::
12001200
<dependency>
12011201
<groupId>st.orm</groupId>
12021202
<artifactId>storm-oracle</artifactId>
1203-
<version>1.6.1</version>
1203+
<version>1.6.2</version>
12041204
<scope>runtime</scope>
12051205
</dependency>
12061206
----
12071207
Gradle::
12081208
+
12091209
[source,groovy]
12101210
----
1211-
runtimeOnly 'st.orm:storm-oracle:1.6.1'
1211+
runtimeOnly 'st.orm:storm-oracle:1.6.2'
12121212
----
12131213
====
12141214

@@ -1230,15 +1230,15 @@ Maven::
12301230
<dependency>
12311231
<groupId>st.orm</groupId>
12321232
<artifactId>storm-metamodel-processor</artifactId>
1233-
<version>1.6.1</version>
1233+
<version>1.6.2</version>
12341234
<scope>provided</scope>
12351235
</dependency>
12361236
----
12371237
Gradle::
12381238
+
12391239
[source,groovy]
12401240
----
1241-
annotationProcessor 'st.orm:storm-metamodel-processor:1.6.1'
1241+
annotationProcessor 'st.orm:storm-metamodel-processor:1.6.2'
12421242
----
12431243
====
12441244

@@ -1262,8 +1262,7 @@ DSL (Kotlin)::
12621262
[source,kotlin]
12631263
----
12641264
val email: String = ...;
1265-
val users: List<User> = orm
1266-
.findAll { User_.email eq email }
1265+
val users: List<User> = orm.findAll { User_.email eq email }
12671266
----
12681267
====
12691268

@@ -1303,15 +1302,15 @@ Maven::
13031302
<dependency>
13041303
<groupId>st.orm</groupId>
13051304
<artifactId>storm-json</artifactId>
1306-
<version>1.6.1</version>
1305+
<version>1.6.2</version>
13071306
<scope>compile</scope>
13081307
</dependency>
13091308
----
13101309
Gradle::
13111310
+
13121311
[source,groovy]
13131312
----
1314-
implementation 'st.orm:storm-json:1.6.1'
1313+
implementation 'st.orm:storm-json:1.6.2'
13151314
----
13161315
====
13171316

@@ -1439,15 +1438,15 @@ Maven (Java)::
14391438
<dependency>
14401439
<groupId>st.orm</groupId>
14411440
<artifactId>storm-spring</artifactId>
1442-
<version>1.6.1</version>
1441+
<version>1.6.2</version>
14431442
<scope>compile</scope>
14441443
</dependency>
14451444
----
14461445
Gradle (Java)::
14471446
+
14481447
[source,groovy]
14491448
----
1450-
implementation 'st.orm:storm-spring:1.6.1'
1449+
implementation 'st.orm:storm-spring:1.6.2'
14511450
----
14521451
Maven (Kotlin)::
14531452
+
@@ -1456,15 +1455,15 @@ Maven (Kotlin)::
14561455
<dependency>
14571456
<groupId>st.orm</groupId>
14581457
<artifactId>storm-kotlin-spring</artifactId>
1459-
<version>1.6.1</version>
1458+
<version>1.6.2</version>
14601459
<scope>compile</scope>
14611460
</dependency>
14621461
----
14631462
Gradle (Kotlin)::
14641463
+
14651464
[source,groovy]
14661465
----
1467-
implementation 'st.orm:storm-kotlin-spring:1.6.1'
1466+
implementation 'st.orm:storm-kotlin-spring:1.6.2'
14681467
----
14691468
====
14701469

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</properties>
1414
<groupId>st.orm</groupId>
1515
<artifactId>storm-framework</artifactId>
16-
<version>1.6.1</version>
16+
<version>1.6.2</version>
1717
<packaging>pom</packaging>
1818
<name>Storm Framework</name>
1919
<description>A SQL Template and ORM framework, focusing on modernizing and simplifying database programming.</description>

storm-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>st.orm</groupId>
88
<artifactId>storm-framework</artifactId>
9-
<version>1.6.1</version>
9+
<version>1.6.2</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>storm-core</artifactId>

storm-core/src/main/java/st/orm/core/template/impl/RecordValidation.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ private static boolean isValidPrimaryKeyType(@Nonnull Class<?> type) {
8181
|| type == String.class
8282
|| type == UUID.class
8383
|| type == BigInteger.class
84-
|| type.isEnum())) {
84+
|| type.isEnum()
85+
|| type == Ref.class)
86+
) {
8587
return false;
8688
}
8789
return true;

storm-foundation/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>st.orm</groupId>
88
<artifactId>storm-framework</artifactId>
9-
<version>1.6.1</version>
9+
<version>1.6.2</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>storm-foundation</artifactId>

storm-java21/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>st.orm</groupId>
88
<artifactId>storm-framework</artifactId>
9-
<version>1.6.1</version>
9+
<version>1.6.2</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>storm-java21</artifactId>

storm-json/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>st.orm</groupId>
88
<artifactId>storm-framework</artifactId>
9-
<version>1.6.1</version>
9+
<version>1.6.2</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>storm-json</artifactId>

storm-kotlin-spring/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>st.orm</groupId>
88
<artifactId>storm-framework</artifactId>
9-
<version>1.6.1</version>
9+
<version>1.6.2</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>storm-kotlin-spring</artifactId>

storm-kotlin-validator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>st.orm</groupId>
88
<artifactId>storm-framework</artifactId>
9-
<version>1.6.1</version>
9+
<version>1.6.2</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<properties>

storm-kotlin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>st.orm</groupId>
88
<artifactId>storm-framework</artifactId>
9-
<version>1.6.1</version>
9+
<version>1.6.2</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>storm-kotlin</artifactId>

0 commit comments

Comments
 (0)