[
https://issues.jboss.org/browse/FORGE-416?page=com.atlassian.jira.plugin....
]
George Gastaldi updated FORGE-416:
----------------------------------
Fix Version/s: 1.0.7.Final
Assignee: (was: Paul Bakker)
cascade=CascadeType.ALL added to @OneToOne mapped fields on scaffold
from-entity com.cpox.model.partner.*
---------------------------------------------------------------------------------------------------------
Key: FORGE-416
URL:
https://issues.jboss.org/browse/FORGE-416
Project: Forge
Issue Type: Bug
Components: Scaffold
Affects Versions: 1.0.7.Final
Reporter: Gabor Nagy
Fix For: 1.0.7.Final
{code:title=Address.java}
@Entity
public class Address implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
private Long id;
@Version
private Integer version;
...
}
{code}
{code:title=Partner.java}
@Entity
public class Partner implements Serializable {
private static final long serialVersionUID = 1L;
...
private @OneToOne(cascade=CascadeType.ALL)
Address address4;
...
}
{code}
One cascade=CascadeType.ALL added after each scaffolding.
{code:title=Partner.java}
@Entity
public class Partner implements Serializable {
private static final long serialVersionUID = 1L;
...
private @OneToOne(cascade=CascadeType.ALL, cascade=CascadeType.ALL)
Address address4;
...
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira