Rob Bygrave
1f841982a5
Rename TQRootBean to QueryBean
2024-04-05 22:08:26 +13:00
Rob Bygrave
0128d64841
Version 14.1.0
2024-04-04 22:54:23 +13:00
Rob Bygrave
68b313f778
Update ebean-agent to 14.1.0
...
This version allows for removal of query bean setRoot() which is no longer needed.
2024-04-04 22:42:06 +13:00
Rob Bygrave
8f1ebdb89a
Rename QueryBean interface to IQueryBean (because we want to rename TQRootBean)
...
We want to rename TQRootBean to QueryBean. I can't do that right now because we need to make ebean-agent aware of that first. So yes, perhaps not ideal with IQueryBean but I think it will make sense once TQRootBean is renamed to QueryBean.
2024-04-04 22:35:55 +13:00
Rob Bygrave
3e65705bf9
#3379 Followup, Move orderById() to common QueryBuilder interface
...
Effectively this adds it to QueryBeans (where it was missing)
2024-04-04 22:05:17 +13:00
Rob Bygrave
7469a38bbc
#3375 Followup, Temporarily add back setRoot() method to allow time for IntelliJ plugin to be released
...
Adding this means that it will work with an old ebean-agent. It takes a few days to get a new IntelliJ plugin released and we can't wait due to wanting to release the bug fix for #3381
2024-04-04 21:53:18 +13:00
Rob Bygrave
da44f7e604
Add QueryBuilder interface as common API for Query and QueryBean
2024-04-01 18:58:57 +13:00
Rob Bygrave
7c8f235550
Add QueryBean interface for query beans to implement
2024-04-01 10:56:25 +13:00
Rob Bygrave
cdbdd98d36
querybeans: #3374 - Add copy() method to TQRootBean
2024-03-31 11:44:32 +13:00
Rob Bygrave and GitHub
678b43693d
Merge pull request #3372 from ebean-orm/feature/1857-SlowQueryBindCapture
...
#1857 Add bind values capture for SlowQueryEvent / SlowQueryListener
2024-03-31 11:34:18 +13:00
Rob Bygrave
951f942c73
Tidy TQRootBean constructor for alias.
...
Note that this requires the updated ebean-agent, where it will not longer use the setRoot() method which has now been removed.
2024-03-31 11:19:39 +13:00
Rob Bygrave
cf2ec4b81d
Modify TQRootBean making root final
...
Remove the unused setRoot() method
2024-03-31 10:02:41 +13:00
Rob Bygrave
7d1745ba53
Add final modifier to TQRootBean methods
...
As these are never expected to be overwritten
2024-03-31 09:57:42 +13:00
Rob Bygrave
40d9c88e34
#1857 Add bind values capture for SlowQueryEvent / SlowQueryListener
...
- changes SqlQueryEvent into an interface.
- captures the bind values the slow query used and makes those available via SlowQueryEvent
- also makes the query label and profileLocation available via SlowQueryEvent
2024-03-25 22:52:04 +13:00
Rob Bygrave
ab45ad34e0
Version 14.0.2
2024-03-21 22:07:12 +13:00
Rob Bygrave and GitHub
540ceab96f
feat: Add query.setHint() to support sql hint as inline comment in select queries ( #3365 )
...
* feat: Add query.setHint() to support sql hint as inline comment in select queries
This is for ORM queries only.
An ORM query like:
new QCustomer()
.setHint("FirstRows")
.select(QCustomer.Alias.id, QCustomer.Alias.name)
.findList();
Produces SQL that includes the hint as an inline comment like:
select /*+ FirstRows */ t0.id, t0.name
from customer t0
* Fix test QOrderTest
2024-03-20 21:48:43 +13:00
Rob Bygrave and GitHub
8b858a073a
feat: Add includeLabelInSql configuration option to include query label as inline comment in generated sql select ( #3362 )
...
* feat: Add includeLabelInSql configuration option to include query label as inline comment in generated sql select
The generated select queries can look like:
select /* MyInnerTest.insert_and_find */ t0.id, ...
Using either query.setLabel() or profile location (which all query beans get by default). This means that tooling looking at sql in the database can more easily relate that sql back to application code.
* More tests for labels with includeLabelInSql=true
* Remove trim when using profileLocation label
2024-03-18 07:38:30 +13:00
Rob Bygrave
6ce42b1ca3
Version 14.0.1
2024-03-03 20:24:26 +13:00
Rob Bygrave
b2de333dcc
#3313 Ability to configure fetch batch size when using FetchGroups and query beans
...
We can do this currently using string paths and properties, this adds support for doing this when using query beans and strong types
2024-03-03 13:47:49 +13:00
Rob Bygrave
a2cdea24ed
#3337 Fix querybean-generation to not import the entity bean type
...
Use the full canonical name of the entity bean in the generated code.
2024-03-03 12:13:49 +13:00
Rob Bygrave
6b2cdc14aa
Version 14.0.0
2024-02-15 22:48:38 +13:00
Rob Bygrave
261b13ef4b
Version 13.26.1
2024-02-10 12:40:30 +13:00
Rob Bygrave
f34e7b6003
Version 13.26.0
2024-01-20 22:01:30 +13:00
Rob Bygrave
44770382fb
enh: Add findSingleAttributeOrEmpty() returning Optional
2024-01-19 10:41:54 +13:00
Rob Bygrave and GitHub
2a62d413cc
Merge pull request #3308 from Incanus3/fix/querybean_or_with_exists
...
fix TQRootBean.exists() when used with .or()
2024-01-19 08:29:29 +13:00
Rob Bygrave
0046d983cb
Adjust test such that table alias does not clash
...
The .raw("contact.customer_id = customer.id") clashes as "customer.id" is
a logical path from contact
2024-01-19 08:14:58 +13:00
Jakub Kaláb
2e1b52d7d4
WIP: fix TQRootBean.exists() when used with .or()
2024-01-18 11:32:34 +01:00
Rob Bygrave
8a7379879b
Add forRemoval=true for existing Deprecated methods in query beans
2024-01-18 20:15:57 +13:00
Rob Bygrave
4ebb5fd112
#3296 Add copy() method to query beans
2024-01-15 22:30:17 +13:00
Rob Bygrave
47e97a77a8
Version 13.25.2
2023-12-07 20:18:40 +13:00
Rob Bygrave
720832122c
Follow up for #3248 - add betweenProperties on query bean
2023-12-05 23:32:16 +13:00
Raphael Nguyen
6b7efe65d7
Expose betweenProperties on query bean
2023-12-05 15:08:16 +11:00
Rob Bygrave
3f67425727
QueryBean generation - conditionally fully qualify the property types
...
If there is an entity bean short name clash like PString, PLong, etc then
fully qualify all the property types in the generated code, otherwise use
imports for the property types.
2023-11-29 00:46:56 +13:00
Rob Bygrave
dfe95f6fc0
Version 13.25.1
2023-11-22 17:50:09 +13:00
Rob Bygrave
b50ce5fc3f
Version 13.25.0
2023-11-06 20:08:00 +13:00
Rob Bygrave
bcf7bd17be
Version 13.14.0-jakarta
2023-11-05 22:21:20 +13:00
Rob Bygrave
ae962c2e08
Improve the javadoc for deprecated methods (to assist IDE quick-fix actions)
2023-11-03 20:04:25 +13:00
Rob Bygrave
70eb557929
Version 13.23.2-jakarta
2023-10-27 22:13:05 +13:00
Rob Bygrave
8f6a3c59d1
Bump io.avaje:junit and bytebuddy version to support JDK 22+
2023-10-25 21:58:19 +13:00
Rob Bygrave
84f0ef9fce
Use querybean-generator via provided scope rather than maven compiler plugin
...
This is because when releasing both jakarta and javax versions these
need to have their versions adjusted
2023-10-24 23:07:14 +13:00
Rob Bygrave
6f8805a6b3
Use querybean-generator via provided scope rather than maven compiler plugin
...
This is because when releasing both jakarta and javax versions these
need to have their versions adjusted
2023-10-24 22:17:28 +13:00
Rob Bygrave
0171c1afef
Version 13.23.1
2023-10-18 15:47:04 +13:00
Rob Bygrave
169d170247
Explicit annotation processors required with JDK 22
...
JDK 22 changes such that annotation processors are not found by default on
the classpath. As such they either need to be explicitly registered with
the compiler (e.g. maven-compiler-plugin) or use -proc:full
2023-10-16 21:54:32 +13:00
Rob Bygrave
d0ee42e0de
Include <compilerArgument>-proc:full</compilerArgument> for JDK 22 EA build
2023-10-16 20:32:41 +13:00
Rob Bygrave
0b2c016af2
Version 13.23.0
2023-10-10 22:46:30 +13:00
Rob Bygrave
b3a577e3f9
#3234 - Query Bean Generator Generates Non-Compilable Code When Entity Uses @Embeddable Inner Class For Primary Key Type
2023-10-09 22:03:02 +13:00
Rob Bygrave
395edb62bf
In version 13.22 if the entity definition is in a different package, the generated query bean cannot resolve the symbol erro
2023-10-09 21:10:56 +13:00
Rob Bygrave
ff43672f4e
Move source to Jakarta (use ./jakarta-to-javax.sh)
...
Moving the master branch to use jakarta based code and
dependencies. Change to use ./jakarta-to-javax.sh to convert
back to javax when releasing that.
2023-09-11 23:31:01 +12:00
Rob Bygrave
f03892a4bd
#3216 - Fix querybean generation for @Embedded beans (fix for 13.22.0 change)
...
Version 13.22.0 added a change to query bean generation that has an issue for
embedded beans. This fixes that issue.
2023-09-11 23:01:44 +12:00
Rob Bygrave
0842a3f3e2
Version 13.22.0
2023-08-30 22:17:31 +12:00