huangp / entityunit Goto Github PK
View Code? Open in Web Editor NEWSimple tool to make JPA entities for testing
License: GNU Lesser General Public License v2.1
Simple tool to make JPA entities for testing
License: GNU Lesser General Public License v2.1
The method BeanMaker.trySetValue()
calls BeanUtils.setProperty
if the JPA AccessType is PROPERTY, but it uses a field name instead of a property name. To make things worse, it seems that org.apache.commons.beanutils.BeanUtils.setProperty()
fails silently if the requested property doesn't exist. This leaves the entity property with its default value, instead of setting the requested value.
This interacts badly with Kotlin's approach to interop for boolean properties - a Boolean Kotlin property named isActive
will be exposed with the getter isActive()
and the setter setActive()
(thus the JavaBean property name is active
), but the backing field is named isActive
, not active
. This is perfectly valid for JavaBeans, and would not be a problem, except that entityunit tries to access the JavaBean property (active
) using the field name (isActive
).
Now it deletes only ManyToMany JoinTable but in fact it should delete all join tables. e.g. JoinTable on OneToOne...
FixedValueMaker.toString()
depends on the formerly deprecated, now deleted Guava method Objects.toStringHelper. That method was moved to the class MoreObjects in Guava 21.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.