Comments (5)
I love your project. You have everything: beyond anyone could dream of 🤝🔥
I have recently modernized a legacy project. And among other things, I have replaced jOOQ by Ebean. The code is more concise and readable now.
from ebean.
Use ebean.idGeneratorAutomatic=false
or set it via DatabaseConfig.setIdGeneratorAutomatic(false)
This defaults to true and means that @Id
properties use either Identity
or Sequence
based on the DatabasePlatform. Turning this off means that when those are needed an explicit @GeneratedValue
is required.
from ebean.
The above globally turns off ebeans implicit behaviour. An alternative for the case that MOST entities use Identity or Sequence and only a few are application controlled identity values, then we can use ebean specific @Identity(type=APPLICATION)
so:
@Id @Identity(type=APPLICATION)
Long id;
from ebean.
Thanks for that, it's great getting feedback. There is some missing documentation on this which should be added at: https://ebean.io/docs/mapping/jpa/id#generated-value ... so I'll look to do that.
Cheers, Rob.
from ebean.
Ok, I've update the website documentation. We can close this now.
from ebean.
Related Issues (20)
- LimitOffsetPagedList add getTotalCount cache HOT 1
- After packaging Javalin + Ebean into a JAR file, it cannot run:jakarta.persistence.PersistenceException: hxy.dragon.model.Customer is NOT an Entity Bean registered with this server HOT 2
- Feature request: add query bean copy() method to TQRootBean interface HOT 2
- Empty OneToMany when overflowing LazyLoadBatchSize and mixed queries HOT 11
- IntelliJ IDEA 2024.1 needs updated plugin HOT 1
- ebean-gradle-plugin: ERROR [Test worker] io.ebean.internal::Error in deployment / Error trying to create the prototypeEntityBean for class HOT 14
- [12.16.3] Add support for "NoTimeZone", specifically to use no timeZone with MySql
- How to delete permanently use Qbean when use SoftDelete HOT 3
- Ebean-Data (auto generated repositories)? HOT 1
- querybean-generator incremental annotation processing not working in gradle HOT 8
- ReadOnly transactions does not honor isolation-level HOT 1
- Race condition EBean 14 HOT 7
- Q: is there a way to invalidate lazy-loaded entity bean field? HOT 17
- Sorting on a ManyToMany relationship HOT 1
- No delay on SIGTERM before shutting down future count ThreadPoolExecutor HOT 2
- Unable to use kapt to generate querybean in Maven HOT 1
- JtraTransactionManager keeps reference to already closed scope (and Transaction/connection ThreadLocal) when JtaTxnListener#afterCompletion is called by a different thread HOT 3
- 12.8.3 java.util.ConcurrentModificationException: null HOT 7
- Java 22 support HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebean.