Comments (4)
Finally i digged deeper into the code and got to following conclusion:
The cause of this is when using a getter of many field of an entity it will always be set to an empty BeanCollection instance.
This happens already in the byte code enhancement of the ebean agent.
See FieldMeta.addGetForMany()
But i think for stateless updates this behavior can be quite annoying, so what would be the best solution for this problem?
from ebean.
Ok, we can deactivate that byte code enhancment feature with following setting:
checkNullManyFields=false
What is the purpose of that feature at all? I think especially for stateless updates can this behavior produce some problems.
from ebean.
finally i have deactivated that feature, so u can close this issue or not so you can consider it later in any future release.
from ebean.
This is fixed in 4.0.1-RC1
from ebean.
Related Issues (20)
- Slow SQL do not log native SQL
- DBName with hyphens creates invalid code HOT 2
- Specified twice when use mapping with Entity has @EmbeddedId HOT 1
- Add alias support for filterMany
- Different filterMany behavior when no matches found HOT 4
- Fields are null when I use rawSql for fetch an @Entity with fetchType = lazy HOT 1
- filterMany has no effect on OneToOne HOT 3
- Miss data when I save a @Entity which has Lazy fetch type HOT 6
- About BeanQueryAdapter HOT 5
- String should default to `text` field in Postgres HOT 2
- PostgreSQL tsvector support? Generic column support? HOT 3
- Add also() for query beans HOT 4
- Add some PageRequest params for query beans HOT 1
- Ignore queryBean.select(null) calls HOT 1
- Duplicated entities in findMany when a ManyToOne relation is fetched (Postgresql) HOT 11
- How to use streaming queries in mysql HOT 11
- java.util.HashMap in computeIfAbsent HOT 6
- DiscriminatorColumn stops working in EBean 15 (upgrade from 14) HOT 2
- How to force update of space-time attributes when performing update
- about property covert HOT 3
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.