[
https://issues.jboss.org/browse/FORGE-416?page=com.atlassian.jira.plugin....
]
Ricardo Martinelli Oliveira reassigned FORGE-416:
-------------------------------------------------
Assignee: Ricardo Martinelli Oliveira
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: Ricardo Martinelli Oliveira
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
For more information on JIRA, see:
http://www.atlassian.com/software/jira