Jmix version: 2.3.0
Jmix Studio plugin version: 2.3.NIGHTLY1356-241
IntelliJ version: IntelliJ IDEA 2024.1.4 (Ultimate Edition)
I did create a new Project.
I did Generate Model from Database.
Attached you find the source
Bio4_cleaned.zip (116.8 KB)
When I go to http://localhost:8080
The following error is thrown
2024-07-12T17:42:42.261+02:00 ERROR 8056 --- [nio-8080-exec-2] eclipselink.logging.all : Exception [EclipseLink-0] (Eclipse Persistence Services - 4.0.2-3-jmix.v202404051618): org.eclipse.persistence.exceptions.IntegrityException
Descriptor Exceptions:
---------------------------------------------------------
Exception [EclipseLink-48] (Eclipse Persistence Services - 4.0.2-3-jmix.v202404051618): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Multiple writable mappings exist for the field [tObjects.objIdCollection]. Only one may be defined as writable, all others must be specified read-only.
Mapping: org.eclipse.persistence.mappings.ManyToOneMapping[tlkpcsObjAdd10]
Descriptor: RelationalDescriptor(com.company.bio4.entity.TObject --> [DatabaseTable(tObjects)])
What is the real causa of this error ?
If you create a new project without the entity TlkpcsObjAdd10
, the project is working !
Best regards
Felix