-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Complete
-
Affects Version/s: 1.1.4.RELEASE
-
Fix Version/s: 1.1.4.RELEASE
-
Component/s: PERSISTENCE
-
Labels:
-
Environment:Linux Ubuntu 10.10, Apache Maven 3.0.2, Java 1.6.0_23, PostgreSQL 8.2.9, Commit 79bf6a92542ec54860baad787b62340cf7e3ddee
When 'database reverse engineer' command generates multiple JoinColumn in a property, the insertable and updatable attributes must have the same value on each JoinColumn.
@ManyToOne @JoinColumns({ @JoinColumn(name = "aplicacion", referencedColumnName = "aplicacion", nullable = false, insertable = false, updatable = false), @JoinColumn(name = "rolusuar", referencedColumnName = "usuario", nullable = false) }) private TcomAplusu TcomAplusu.tcomAplusu;
Previous configuration crash with "Mixing insertable and non insertable columns in a property is not allowed: org.gvnix.test.dbre.acuses.TcomAplusu.tcomAplusu"
Error can be resolved with:
@ManyToOne @JoinColumns({ @JoinColumn(name = "aplicacion", referencedColumnName = "aplicacion", nullable = false, insertable = false, updatable = false), @JoinColumn(name = "rolusuar", referencedColumnName = "usuario", nullable = false, insertable = false, updatable = false) }) private TcomAplusu TcomAplusu.tcomAplusu;