Rob Bygrave
583c5f74eb
Support Postgres JSONB/JSON with String - @DbJsonb String content;
2022-06-14 14:57:50 +12:00
Rob Bygrave
8301fd5e74
#2710 - JSONB fields are not considered dirty after modified in BeanPersistController preUpdate
2022-06-13 18:35:42 +12:00
Rob Bygrave
9aa7ae79e2
#2713 - Improve javadoc of Finder, BeanFinder, BeanRepository - deprecate use of BeanFinder server field (migrate to database)
2022-06-09 13:26:48 +12:00
Rob Bygrave and GitHub
c02ab7340c
Merge pull request #2708 from FOCONIS/fix-localtime
...
Part 1: Fix read/write/query LocalTime values
2022-06-09 12:00:06 +12:00
Noemi Praml
d1a40b4739
failing test
2022-05-31 10:47:08 +02:00
Noemi Praml
bb9cfe9d0f
add support for findSingleAttributeSet
2022-05-24 11:09:56 +02:00
Rob Bygrave
7fbc1f8111
Postgres DDL - With Postgres table partitioning, add partition column to primary key
...
- Postgres DDL generation
- Using table partitioning
- There is a primary key defined that doesn't contain the partition column
In DDL generation, automatically add the partition column to the DB primary key.
2022-05-17 21:39:06 +12:00
Rob Bygrave
4f3c9adf6f
#2695 - DDL Generation for @UniqueConstraint ignores the name - should be the index name when given
2022-05-16 22:06:14 +12:00
Rob Bygrave
36d589d4f3
#2691 - Improve logging summary when insert bean with no @Id ...
2022-05-16 11:30:36 +12:00
Rob Bygrave
a4df643d82
#2690 - Refactor internals, tidy SaveManyBeans
...
- Introduce hasOrderColumn field
- Add clearedParent flag to only clear the parent bean from persistence context once (not per detail bean)
2022-05-13 11:38:39 +12:00
Rob Bygrave
74174444bb
Bug - OneToMany orphanRemoval = true, replace collection adding back original collection entry
...
- Adding back a bean from the original collection
- Expect that bean to exist in the final result but, it's missing
Fix here is in SaveManyBeans to add a insertAllChildren and use ebi.setNew(); for beans to force them to insert for this case.
2022-05-12 23:14:26 +12:00
Rob Bygrave
4b260483ce
Test only - Adjust timing in TestHistoryInsert.mariadb_simple_history()
2022-05-12 17:14:20 +12:00
Rob Bygrave
84042397b6
#2626 - For readOnly disableLazyLoad using Collections.EMPTY_LIST etc for reference collections
2022-05-03 12:12:47 +12:00
Rob Bygrave
d1b5400f2c
Merge branch 'master' into wip/EntityBeanIntercept-interface
2022-05-03 10:45:45 +12:00
Rob Bygrave
c766756efe
Improve test TestHistoryOneToOne
2022-04-20 10:02:11 +12:00
Rob Bygrave and GitHub
0e6c6965f0
Merge pull request #2654 from FOCONIS/file-dirty-detection
...
Fix: Setting file with same content should not make bean dirty
2022-04-19 22:30:15 +12:00
Rob Bygrave
7a17cd0797
Tidy DefaultDbSqlContext, remove excess space from sql left join, tidy whitespace
2022-04-19 15:44:08 +12:00
Rob Bygrave
756e3e4a1c
#2651 - @OneToOne with @History, add fix and update tests
...
Effectively Ebean internally needs to keep a count on the number of times AS OF predicates are added (to joins + top level table). This change moves keeping that count for all joins to DbSqlContext.
2022-04-19 15:02:50 +12:00
Roland Praml
669d004d1b
Fix: Setting file with same content should not make bean dirty
...
(cherry picked from commit 62c4acd36a )
2022-04-14 15:12:45 +02:00
Tobias
67fc7cdb48
Test case for lazy @OneToOne beans with @History
...
Ebean produces an invalid query when trying to lazy load @OneToOne
from a historical bean. This test asserts working behaviour.
2022-04-14 10:17:45 +02:00
Rob Bygrave and GitHub
9862526352
Merge branch 'master' into wip/EntityBeanIntercept-interface
2022-04-13 10:43:13 +12:00
Roland Praml
8c800e992d
Fix beanCache order by & clear did not work
...
(cherry picked from commit 4dee827fda )
2022-04-12 13:51:49 +02:00
Rob Bygrave and GitHub
45003b3d5f
Merge branch 'master' into wip/EntityBeanIntercept-interface
2022-04-12 21:09:58 +12:00
Rob Bygrave
183b601be8
#2641 - toString() - Change BeanCollection toString() implementations, suppress unloaded BeanCollections
2022-04-08 18:53:57 +12:00
Rob Bygrave
f5a779e18b
Refactor L2 cache tenant awareness - add TenantAwareCache
...
The design change is to use TenantAwareCache to deal with wrap/unwrap of tenant aware keys, removing any tenant awareness from the underlying cache implementations (DefaultServerCache, redis, hazelcast etc).
2022-04-07 15:26:21 +12:00
Rob Bygrave
c7ad5c5981
#2636 - Remove deprecated @CreatedTimestamp and @UpdateTimestamp, migrate to @WhenCreated / @WhenModified
2022-04-06 22:17:33 +12:00
Rob Bygrave
48d7e79b16
Remove deprecated findLargeStream(), migrate to findStream()
...
findLargeStream() became no longer become needed due to improvements in the persistence context. Migrate to just use findStream() instead.
2022-04-06 18:17:25 +12:00
Rob Bygrave
5ab02715ef
Support EntityBeanIntercept as an interface with InterceptReadWrite and InterceptReadOnly options
...
With the view that we can optimise the readOnly + disableLazyLoad case by using InterceptReadOnly which doesn't need to support any of the flags used as part of mutation.
2022-04-04 13:30:26 +12:00
Rob Bygrave
c4a3f43e0d
#2623 - CurrentTenantProvider called even when table has no tenantId column specified
2022-03-31 16:54:45 +13:00
Rob Bygrave
e71e16c1ee
Refactor extract separate modules for each platform from ebean-api dbplatform
2022-03-30 17:11:36 +13:00
Rob Bygrave
4cad515110
#2619 - Lack of setNullParameter() functionality on io.ebean.SqlQuery interface
2022-03-29 22:41:36 +13:00
Roland Praml
ffeb630e7e
JsonContext accepts a bean as target
2022-03-28 15:38:44 +02:00
Rob Bygrave
84a64f9640
Refactor tests, move BaseTestCase and annotations @ForPlatform @IgnorePlatform
2022-03-24 18:52:37 +13:00
Rob Bygrave
e4c06432a0
Move some more unit tests from ebean-test back to ebean-core
2022-03-24 18:48:59 +13:00
Rob Bygrave
f58d6038c7
Move some unit tests from ebean-test back to ebean-core
2022-03-24 18:21:48 +13:00
Roland Praml
ab6f5daec3
FIX LargeValueInsert-Test for DB2
2022-03-17 13:26:54 +01:00
Rob Bygrave
d4d1e571d3
Fix test assert for multi-database
2022-03-16 22:37:54 +13:00
Rob Bygrave
92e85e32a2
#2598 - H2 + @Lob String fails with - Error[Value too long for column "CHARACTER VARYING": "... (1048577)" [22001-210]]
2022-03-16 22:13:52 +13:00
Rob Bygrave and GitHub
00a1324c52
Merge pull request #2596 from FOCONIS/ddl-refactor8
...
DDl-Refactor: Add DB2 Reorg support and history support
2022-03-16 18:47:58 +13:00
Rob Bygrave
75b9df942c
No effective change - tidy TestWithCacheAndLazyLoad
2022-03-16 18:38:47 +13:00
Roland Praml
79f6d6d0f0
Ignored query plans for DB2
2022-03-15 17:18:34 +01:00
Roland Praml
782e41098d
enabled history tests
2022-03-15 16:56:00 +01:00
Noemi Szemenyei
8ad8f47c6b
Created failing test case
...
(cherry picked from commit 2b21588c90 )
2022-03-15 13:20:16 +01:00
Rob Bygrave
fd4be0ca59
#2593 - Tidy SqlTreeBuilder to not add duplicate BeanProperties
2022-03-14 16:16:14 +13:00
Rob Bygrave
1615beadd1
Merge branch 'master' of github.com:ebean-orm/ebean
2022-03-14 15:37:52 +13:00
Rob Bygrave
267b1b7303
#2580 - Fix for Wrong join in query with @Inheritance
...
Effectively delays an extra join added via BeanPropertyAssocOne with inheritance, such that this only occurs if a SqlTreeNode child doesn't add the join.
2022-03-14 15:37:12 +13:00
Rob Bygrave
c902caed24
Fix is to delay the extra join added via BeanPropertyAssocOne until after the children nodes have joined.
...
In this way the join is ONLY added if not already done so via a child node (SqlTreeNode).
2022-03-14 15:32:42 +13:00
Noemi Szemenyei
6867c4568c
fix db.shutdown()
...
(cherry picked from commit 33d17d0f49 )
2022-03-11 13:32:08 +01:00
Noemi Szemenyei
e0e572a8b4
update
...
(cherry picked from commit dab8ed8a3b )
2022-03-11 13:31:58 +01:00
Noemi Szemenyei
3c7555de36
Provide custom BackgroundExecutorWrapper to pass thread locals
...
(cherry picked from commit 336accf447 )
2022-03-11 13:31:50 +01:00