Rob Bygrave
df7b04877d
#3121 BindMaxLength validation
...
At deploy time derive a BindMaxLength property to use
per BeanProperty
2023-06-26 21:16:32 +12:00
Rob Bygrave
4683877e0b
Merge branch 'string-length-validation' of github.com:FOCONIS/ebean into FOCONIS-string-length-validation
2023-06-23 16:51:34 +12:00
Rob Bygrave
9a4b9d4bec
Bump to next snapshot version
2023-06-21 07:08:13 +12:00
Roland Praml
d0020ab8ce
Length validation less invasive
2023-06-20 14:47:20 +02:00
Roland Praml
9b3b8ad46a
extended DataBind, so that it could return the last bound object
2023-06-20 13:03:04 +02:00
Rob Bygrave
68a6e98292
Version 13.20.0
2023-06-20 20:35:04 +12:00
Rob Bygrave
fa1f225e67
#3109 follow up - refactor rename internal methods
2023-06-20 19:41:00 +12:00
Rob Bygrave
7a72adedfa
#3109 JtaTransactionManager - fix getCurrentTransaction()
...
Fix for JtaTransactionManager to allow Wildfly (or other) to throw an Exception when TransactionSynchronizationRegistry.getResource() is called.
2023-06-20 19:39:08 +12:00
Rob Bygrave and GitHub
9fc1bec6a9
Merge pull request #3046 from FOCONIS/bugfix/lazy_loading_findEach_garbage_collection
...
Bugfix for NPE when lazyLoading in findEach due to Garbage Collection
2023-06-17 11:56:25 +12:00
Rob Bygrave
870d90d055
Followup to #3113 , remove unused first BatchControl queue
2023-06-17 11:35:51 +12:00
Jonas Pöhler
b63445e9c9
FIX: Put the delete statements into the correct flush-queue, so they do not conflict with the following inserts
2023-06-16 16:26:14 +02:00
robin.bygrave
c7f6c508a6
#3101 - Support JPA Indexes
2023-06-16 13:44:03 +12:00
Rob Bygrave
462d30bbb7
Version 13.19.0
2023-06-07 17:56:19 +12:00
Rob Bygrave
d27d20dd1c
Refactor ebean-core internal API - getters -> accessors
2023-06-02 09:03:29 +12:00
Rob Bygrave
2929483b0d
Refactor ebean-core internal API - getters -> accessors
2023-06-01 22:05:53 +12:00
Rob Bygrave
2ab7c3529a
Tidy ebean-core internal API
...
- Remove unused BeanIdList
2023-06-01 21:27:55 +12:00
Rob Bygrave
e71be4e1b1
Deprecate order() methods on Query, ExpressionList - migrate to orderBy()
...
Unfortunately we have order() and orderBy() methods which do the
same thing. I have decided to deprecate the order() ones in
favour of the orderBy() methods so that ultimately we will end
up with less methods and I think orderBy() is the correct choice.
Apologies for the migration pain here.
2023-06-01 21:21:39 +12:00
Rob Bygrave
430926c5a9
Remove deprecated Query setLoadBeanCache() - migrate to setBeanCacheMode()
...
Typically migrate to `.setBeanCacheMode(CacheMode.PUT)` or `.setBeanCacheMode(CacheMode.OFF)`
```java
/**
* Deprecated - migrate to use setBeanCacheMode(CacheMode.PUT) or other CacheMode.
* <p>
* When set to true all the beans from this query are loaded into the bean cache.
*/
@Deprecated
Query<T> setLoadBeanCache(boolean loadBeanCache);
```
2023-06-01 20:44:31 +12:00
Rob Bygrave
f21caa0755
Remove deprecated ExpressionList.setOrderBy() - migrate to orderBy()
...
Migrate to `.orderBy(String orderBy)`
```java
/**
* Deprecated migrate to {@link #orderBy(String)}
*/
@Deprecated
Query<T> setOrderBy(String orderBy);
```
2023-06-01 20:34:04 +12:00
Rob Bygrave
4c47a84daf
Remove deprecated DatabaseConfig.defaultOrderById
...
Should no longer be used / set to true.
```java
/**
* Deprecated - look to have explicit order by. Sets the default orderById setting for queries.
*/
@Deprecated
public void setDefaultOrderById(boolean defaultOrderById) {
this.defaultOrderById = defaultOrderById;
}
```
2023-06-01 20:09:14 +12:00
Rob Bygrave
4878ca47b5
Remove deprecated ExtendedServer query methods - use query.usingTransaction() instead
...
Removing all the deprecated query methods from ExtendedServer. Migrate to passing
the explicit transaction to the query using query.usingTransaction() instead.
2023-06-01 19:45:17 +12:00
Rob Bygrave
7efef027c0
Fix javax-to-jakarta support for jakarta.transaction
2023-06-01 08:24:14 +12:00
Rob Bygrave
3a84695130
Version 13.18.0
2023-05-31 22:06:30 +12:00
robin.bygrave
34db4d0c1f
Refactor internal dto methods to use accessors
2023-05-26 15:09:11 +12:00
robin.bygrave
7635630808
Use Statement for truncate table and postgres version query
2023-05-26 15:03:13 +12:00
robin.bygrave
75e69a0a23
#3062 - DtoQuery may match the wrong constructor
...
When 2 or more Dto constructors clash by argument count
then we need to ignore those constructors.
2023-05-25 21:57:54 +12:00
Roland Praml
e207b4720b
DB.refrence throws EntityNotFoundException instead returning null
2023-05-23 08:37:52 +02:00
robin.bygrave
b210d1a6a7
From #3060 - Add missing @Nullable to ExpressionList.findSingleAttribute()
2023-05-23 16:12:13 +12:00
Rob Bygrave and GitHub
d53ca87d43
Merge pull request #3057 from FOCONIS/property-value-intercept
...
Property.value use intercept to trigger lazy load
2023-05-23 13:36:09 +12:00
Rob Bygrave and GitHub
635820cab5
Merge pull request #3058 from ebean-orm/feature/BeanProperty-value-to-getValue
...
No functional change, change use of BeanProperty.value() to BeanProperty.getValue()
2023-05-19 16:09:37 +12:00
Rob Bygrave and GitHub
aedb0fdcac
Merge pull request #3063 from ebean-orm/feature/improve-error-message-no-join-columns
...
Use DeployBeanProperty toString() removing getFullBeanName()
2023-05-19 16:08:54 +12:00
robin.bygrave
4db1925328
No functional change, change use of BeanProperty.value() to BeanProperty.getValue()
...
Noting that value() currently calls through to getValue() hence
this is no real change. This is done because value() is also
a public method Property.value() [and this should probably
change to use getValueIntercept() rather than getValue()]
2023-05-17 15:31:52 +12:00
Roland Praml
6f2a444954
Property.value use intercept
2023-05-16 15:28:30 +02:00
robin.bygrave
742f3b6dc4
ENH: Add captureMicros and whenCaptured to MetaQueryPlan
...
- captureMicros is the time taken to capture the specific query plan
- whenCaptured is the time when the bind values were taken
The DefaultQueryPlanListener logging will include these in the
output it logs
2023-05-16 13:47:27 +12:00
Rob Bygrave and GitHub
753617a616
Merge pull request #3039 from FOCONIS/detailed-error-message
...
Throw excepction when trying to create unregistered bean
2023-05-10 16:37:18 +12:00
Rob Bygrave and GitHub
114da00d98
Merge pull request #3040 from FOCONIS/correct-quotes
...
FIX: Use correct quotes when logging
2023-05-10 16:36:27 +12:00
Rob Bygrave and GitHub
283ab7a1ac
Merge pull request #3038 from FOCONIS/fix-javadoc-plugin
...
FIX build on system without JAVA_HOME set
2023-05-10 16:35:39 +12:00
Rob Bygrave
ed94edd96b
Bump to next snapshot version
2023-05-10 16:26:03 +12:00
Rob Bygrave
588527a5b9
Version 13.17.4
2023-05-10 00:34:53 +12:00
Rob Bygrave
06cad500c1
#3031 Improve error message
2023-05-10 00:34:27 +12:00
Rob Bygrave
e6bf46e8c4
Improve error message for #3031
2023-05-09 23:37:05 +12:00
Rob Bygrave
4c9f0f23f0
Fix SqlTreeLoadBean to only register new beans into load context
...
Additionally, refactor LoadBeanRequest moving the MarkedAsDeleted logging
2023-05-09 22:49:17 +12:00
Rob Bygrave
7970ea39f3
Bump to next snapshot version
2023-05-08 17:11:24 +12:00
Jonas Pöhler
edb3759b3d
Potential fix for NPE in lazyLoad under HeapPressure
...
(cherry picked from commit 5aa163bb75 )
2023-05-05 09:58:01 +02:00
Rob Bygrave
5b91e671dd
Version 13.17.3
2023-05-01 14:51:33 +12:00
Rob Bygrave
05ab1ba25e
Modify MarkedAsDeleted to ignore beans added during load
...
Adds the additional queryIds.contains(id) check
2023-05-01 13:11:03 +12:00
Roland Praml
82a6ec6957
Fix also other places
2023-04-26 11:11:12 +02:00
Roland Praml
cf1c08c4ac
FIX: Use correct quotes when logging
2023-04-26 10:59:41 +02:00
Roland Praml
d32df16137
Throw excepction when trying to create unregistered bean
2023-04-26 10:56:14 +02:00
Roland Praml
2bcbc6fa07
FIX also other plugin versions
2023-04-26 10:39:18 +02:00