[forge-issues] [JBoss JIRA] (FORGE-416) cascade=CascadeType.ALL added to @OneToOne mapped fields on scaffold from-entity com.cpox.model.partner.*
Gabor Nagy (Created) (JIRA)
jira-events at lists.jboss.org
Tue Dec 27 01:04:10 EST 2011
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: Forge Build
Affects Versions: 1.0.0.Beta5
Reporter: Gabor Nagy
{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
More information about the forge-issues
mailing list