[forge-issues] [JBoss JIRA] (FORGE-416) cascade=CascadeType.ALL added to @OneToOne mapped fields on scaffold from-entity com.cpox.model.partner.*
Lincoln Baxter III (Assigned) (JIRA)
jira-events at lists.jboss.org
Tue Jan 3 13:37:10 EST 2012
[ https://issues.jboss.org/browse/FORGE-416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lincoln Baxter III reassigned FORGE-416:
----------------------------------------
Assignee: 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: Forge Build
> Affects Versions: 1.0.0.Beta5
> 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
More information about the forge-issues
mailing list