File tree Expand file tree Collapse file tree 6 files changed +19
-8
lines changed
src/main/java/com/oracle/nosql/spring/data Expand file tree Collapse file tree 6 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file.
33
44The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ ) .
55
6+ ## [ 1.5.0]
7+ ### Added
8+ - Added support for java.util.Map and similar types as mapping types.
9+ - Added support for evaluating SpEl expressions on NosqlTable.tableName annotation.
10+ - Added support for table level default TTL.
11+
12+ ### Changed
13+ - Updated documentation links.
14+
615## [ 1.4.1]
716### Added
817- Add a way to return the library version using NosqlDbFactory.getLibraryVersion().
Original file line number Diff line number Diff line change 66
77 <groupId >com.oracle.nosql.sdk</groupId >
88 <artifactId >spring-data-oracle-nosql</artifactId >
9- <version >1.4.1 </version >
9+ <version >1.5.0 </version >
1010
1111 <name >Oracle NoSQL Database SDK for Spring Data</name >
1212 <description >Oracle NoSQL Database SDK for Spring Data</description >
4545 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
4646 <maven .build.timestamp.format>MM-dd-HH-mm-ss</maven .build.timestamp.format>
4747
48- <nosqldriver .version>5.3.4 </nosqldriver .version>
48+ <nosqldriver .version>5.4.9 </nosqldriver .version>
4949
5050 <spring .springframework.version>5.3.20</spring .springframework.version>
5151 <spring .data.version>2.7.0</spring .data.version>
Original file line number Diff line number Diff line change 136136 * {@link com.oracle.nosql.spring.data.Constants#NOTSET_TABLE_TTL} is used,
137137 * which means no table level TTL. This is applicable only when
138138 * {@link #autoCreateTable} is set to true.
139- * <p>
140139 *
141140 * @since 1.5.0
142141 * @see oracle.nosql.driver.TimeToLive
143- * @see <a href="https://docs.oracle.com/en/database/other-databases/nosql-database/22.3/java-driver-table/using-time-live.html#GUID-A768A8F9-309A-4018-8CC3-D2D6B8793C59 ">Using TTL</a>
142+ * @see <a href="https://docs.oracle.com/en/database/other-databases/nosql-database/22.3/java-driver-table/using-time-live.html">Using TTL</a>
144143 */
145-
146144 int ttl () default Constants .NOTSET_TABLE_TTL ;
147145
148146 enum TtlUnit {
Original file line number Diff line number Diff line change @@ -355,7 +355,11 @@ public Consistency getConsistency() {
355355 }
356356
357357 public void setConsistency (String consistency ) {
358- this .consistency = Consistency .valueOf (consistency );
358+ if (Consistency .ABSOLUTE .getType ().toString ().equalsIgnoreCase (consistency )) {
359+ this .consistency = Consistency .ABSOLUTE ;
360+ } else {
361+ this .consistency = Consistency .EVENTUAL ;
362+ }
359363 }
360364
361365 public Durability getDurability () {
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ public void setTimeout(int milliseconds) {
236236 */
237237 @ Override
238238 public String getConsistency () {
239- return entityInformation .getConsistency ().name ();
239+ return entityInformation .getConsistency ().getType (). name ();
240240 }
241241
242242 /**
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ public void setTimeout(int milliseconds) {
217217 */
218218 @ Override
219219 public String getConsistency () {
220- return entityInformation .getConsistency ().name ();
220+ return entityInformation .getConsistency ().getType (). name ();
221221 }
222222
223223 /**
You can’t perform that action at this time.
0 commit comments