[
https://issues.jboss.org/browse/FORGE-416?page=com.atlassian.jira.plugin....
]
Ivan St. Ivanov updated FORGE-416:
----------------------------------
Affects Version/s: 1.0.7.Final
(was: 1.0.0.Beta5)
Component/s: Scaffold
(was: Forge Build)
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
Assignee: Paul Bakker
{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