rob bygrave
1c6fa575f2
#1669 - When deleting complex object graphs, entities are deleted multiple times
...
Fix by not unregistering the deleted bean hash in the transaction so that
the skip occurs on other root level bean traversals (the delete of the
2nd master bean)
2019-04-09 20:30:17 +12:00
rob bygrave
86d0216159
#1644 - ENH: Improve batch flush when multiple "top level" (unrelated) types are persisted
2019-03-04 12:42:08 +13:00
rob bygrave
e5f98f1b7a
#1640 Additionally add expression eq and in support for Inet and Postgres any
2019-02-24 15:29:07 +13:00
Roland Praml
fc7fae35c9
FIX: When saving multiple m2m beans, only last m2m wins (Regression due #1630 ) ( #1638 )
...
* provide test case, that shows problem on multiple-m2m
* FIX: When saving multiple m2m beans, only last m2m wins (Regression due #1630 )
2019-02-12 09:31:04 +13:00
rob bygrave
efce6b57e1
#1632 - ENH: Add bind parameter expansion for SqlUpdate
2019-02-07 23:19:00 +13:00
rob bygrave
988e4c7386
WIP Bind parameter expansion
2019-02-07 21:10:57 +13:00
rob bygrave
9e1d7ab722
#1631 - Change logging for SqlUpdate ... such that it is more consistent with other SQL logging wrt JDBC batch
2019-02-07 17:20:49 +13:00
rob bygrave
0c03a8b925
#1630 - ENH: Improve jdbc batch use when persisting ManyToMany intersection changes
2019-02-05 17:35:58 +13:00
rob bygrave
a83896f1ff
#1617 - save() on a reference bean causes insert to occur ... results in duplicate key exception
...
Fix
2019-01-22 21:59:17 +13:00
rob bygrave
c86e6b3cf9
#1610 - Refactor: Change SQL logging such that jdbc batch use is more obvious
2019-01-21 19:31:28 +13:00
André Camilo
bac53a5d75
FIX: insert in batch OneToOne relationship ( #1609 )
2019-01-15 11:56:52 +13:00
Rob Bygrave
6b27a9d280
Support @ManyToOne inside @Embeddables - fix for #52 ( #1608 )
...
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Initial test and work
* #52 - @ManyToOne support inside @Embeddables
Update test with sql capture
* #52 - @ManyToOne support inside @Embeddables
Update test with cache clearing before hand (such that we hit DB on lazy load)
2019-01-10 03:40:02 +13:00
rob bygrave
1c34c09f3c
#1606 - Bean with Inheritance and OneToMany with JoinTable and cascade ... doesn't cascade save on all bean types
2019-01-09 12:37:13 +13:00
rob bygrave
8544712448
#1606 - Bean with Inheritance and OneToMany with JoinTable and cascade ... doesn't cascade save on all bean types
2019-01-09 12:29:28 +13:00
Roland Praml
b18bc82b8a
FIX: possible NPE in DeleteUnloadedForeignKeys.deleteCascade and in initPostTarget ( #1601 )
2019-01-08 22:41:43 +13:00
rob bygrave
8fc6c4c648
#1580 - Refactor move io.ebeaninternal.metric to public package of io.ebean.metric (such that it can be used by plugins like redis l2 cache plugin)
2018-12-19 14:16:36 +13:00
rob bygrave
315b39813b
#1568 - @OneToMany with orphanRemoval=true ... with @Cache (and not a @ManyToOne) doesn't remove orphans after cache hit
2018-11-30 23:46:11 +13:00
rob bygrave
fcffa92c55
#1567 - SqlUpdate addBatch() ... with named parameters errors with PersistenceException: No batched statement found for key
2018-11-30 21:47:23 +13:00
Roland Praml
808004165c
Code cleanup ( #1534 )
...
* removed unused imports (no code change)
* Add missing @Override / @SupressWarnings (no code change)
* FIX: serialization warnings
* FIX: Access to static member
2018-11-10 20:07:01 +13:00
Rob Bygrave
f928923b5b
#1519 - Memory leak when using @Cache(enableQueryCache=true) ( #1523 )
...
* #1519 - Memory leak when using @Cache(enableQueryCache=true)
* #1519 - Memory leak when using @Cache(enableQueryCache=true)
Remove unused TransactionEventBeans
2018-10-31 23:53:16 +13:00
rob bygrave
8160d1f01c
#1508 - Invalid SQL used to fetch identity value for @Draftable with database platform that uses Identity but not getGeneratedKeys
2018-10-19 15:56:39 +13:00
rob bygrave
2646e8c27f
#1507 - SqlUpdate.execute PersistenceException is not translated into more specific exception (like DuplicateKeyException)
...
Support for sqlUpdate.executeBatch()
2018-10-15 22:30:42 +13:00
rob bygrave
3eaf47fd70
No effective change - add additional tests
2018-10-15 22:25:38 +13:00
rob bygrave
aa7325b249
#1507 - SqlUpdate.execute PersistenceException is not translated into more specific exception (like DuplicateKeyException)
2018-10-15 22:12:39 +13:00
rob bygrave
de9823b69b
#1505 - Unidirectional @OneToOne orphanRemoval=true ... does not delete orphan that is replaced
2018-10-12 22:30:06 +13:00
rob bygrave
b87e360ac7
#1504 - ENH: Add SqlUpdate executeNow() method ... that executes now regardless of transaction batch mode
2018-10-12 18:49:20 +13:00
rob bygrave
31093babe3
#1498 - findIds() with @SoftDelete bean returns all Ids (when soft deleted ones should not return)
...
And fix delete permanent that cascades
2018-10-04 20:49:30 +13:00
Roland Praml
66703a3a29
FIX: recursive BatchedPstmtHolder.flush, when BeanPersistController or ChangeLogFilter hit the database ( #1486 )
2018-09-21 15:38:21 +12:00
rob bygrave
29c5a17202
#1472 - Cascade insert with managed id ... results in update rather than insert statement
2018-08-15 23:12:06 +12:00
rob bygrave
80975acfbf
#1471 - Change stateless update on bean with no @Version property that updates 0 rows to throw EntityNotFoundException
2018-08-14 14:23:28 +12:00
rob bygrave
7d38933e9d
Refactor remove dead code - BindableRequest registerGeneratedVersion()
...
No effective change
2018-07-18 22:16:15 +12:00
rob bygrave
01541bb208
#1457 - Issue with @ManyToOne with @EmbeddedId where only some columns are insertable or updatable
2018-07-18 21:29:08 +12:00
rob bygrave
588aaf9361
#1447 - Delete query ... should honour cascading delete if defined
...
See also PR #1445 with the failing test case
2018-07-05 22:37:54 +12:00
rob bygrave
81c6d4601d
#1425 - Stateless update with OneToMany with SoftDelete and deleteMissingChildren = true ... does a hard delete
2018-06-14 16:09:45 +12:00
rob bygrave
50593a7f9d
#1423 - Close resources - InputStream of entity bean properties of File type
2018-06-14 00:04:43 +12:00
rob bygrave
ffa8268125
#1405 - ENH: Add SqlQuery.findSingleAttribute() ... for returning single scalar values via SqlQuery
2018-06-07 22:17:01 +12:00
rob bygrave
3f8d705439
#1402 - Refactor SQL Logging internals (io.ebean.SQL) such that it is easier to capture for testing/asserts
2018-06-01 14:10:00 +12:00
rob bygrave
d459807af7
#1402 - Refactor SQL Logging internals (io.ebean.SQL) such that it is easier to capture for testing/asserts
2018-06-01 09:19:26 +12:00
ooknight
10ad9ef096
beautify bindNoLog format ( #1399 )
2018-05-31 20:23:52 +12:00
rob bygrave
c23508819f
#1396 merge() with ManyToMany throwing error Referential integrity constraint violation
2018-05-30 03:32:00 +12:00
rob bygrave
af030e3da4
#1394 #1395 - ENH: Add addBatch() and executeBatch() to SqlUpdate ... alternative to changing transaction batch mode enhancement
...
ENH: Add merge() API (using default merge options) to EbeanServer, Ebean and BeanRepository enhancement
2018-05-30 03:31:32 +12:00
rob bygrave
66c08e663e
#1392 - MergeHandler, change regex Pattern to be static
2018-05-29 15:25:38 +12:00
rob bygrave
9a096e272e
#1392 - MergeOptionsBuilder setClientGeneratedIds() ... should not be required if the Id property does not have Identity/Sequence generator assigned
2018-05-29 15:24:32 +12:00
rob bygrave
33031d1c69
#1369 - BeanListener and/or BeanPersistAdapter not fired on delete of children when cascaded
2018-05-06 20:21:10 +12:00
Rob Bygrave
acd5578d8a
#115 - Mapping - Add support for @ElementCollection enhancement
...
Add element collection L2 cache support
2018-03-29 01:15:58 +13:00
Rob Bygrave
07946cd505
#115 - Mapping - Add support for @ElementCollection enhancement
...
Add element collection notification - combine into preUpdate/postUpdate of the bean
2018-03-28 17:31:53 +13:00
Rob Bygrave
57870aaa05
#115 - Mapping - Add support for @ElementCollection enhancement
...
Add embedded bean support
2018-03-28 13:22:46 +13:00
Rob Bygrave
057d7480b0
#115 - Mapping - Add support for @ElementCollection enhancement
...
Add simple Map support with Json
2018-03-21 00:15:40 +13:00
Rob Bygrave
74a9019535
#115 - Mapping - Add support for @ElementCollection enhancement
...
Initial support - simple List.
2018-03-20 14:22:29 +13:00
Rob Bygrave
4799c56e25
#225 - Mapping - Add / review support for @IdClass
2018-03-15 18:19:17 +13:00