Comments (6)
I agree with this as a BUG / ENHANCEMENT. I might adjust the title to reflect that this is a DDL generation issue.
Cheers, Rob.
from ebean.
Looking at this some more I think we can classify this as a BUG.
In terms of the solution ...
solution would be to add a configuration parameter to ebean - which validation group should be used for schema generation
Actually I think instead of this it could/should be that to generate the DDL Not Null constraint there needs to be no validation group defined or that 1 validation group is defined and it is assignable to javax.validation.groups.Default. If this is the case we can say that for every row the Not Null constraint can be applied (and hence we can DDL generate the Not Null constraint).
from ebean.
Pushed commit c176e4f ... into MASTER as the fix for this issue.
from ebean.
Let me know if you are happy enough with the fix and if so we'll close this issue.
Cheers, Rob.
from ebean.
Actually I'll just close this at this point - I'm pretty satisfied that we don't need the configuration support etc.
Let me know if you are looking for some adjustment to the commit that is now in master.
Cheers, Rob.
from ebean.
Hi,
wow, thanks for fixing it that quickly!
This is perfect for me. I don't need any additional configuration parameters, just thought that it may come in handy in some use-cases. I'm happy with fixes provided by you.
Marcin
from ebean.
Related Issues (20)
- 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
- PreSoftDelete entity methods are not invoked on soft delete HOT 2
- connect remote mysql server, heartBeat exception :java.sql.SQLNonTransientConnectionException: Communications link failure during rollback(). Transaction resolution unknown. HOT 3
- ebean-redis put empty value for natural keys
- Entity property called desc used with query order by desc generates bad sql HOT 2
- [ebean-migration] Connection is closed error running migration with MySql and Hikari HOT 2
- Can not use @JoinColumns HOT 6
- duplicate result when using in-statement with bean cache HOT 1
- Slow SQL do not log native SQL
- DBName with hyphens creates invalid code HOT 2
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.