[forge-issues] [JBoss JIRA] (FORGE-398) PersistencePlugin does not generate Cascade

Lincoln Baxter III (Commented) (JIRA) jira-events at lists.jboss.org
Wed Dec 14 18:37:09 EST 2011


    [ https://issues.jboss.org/browse/FORGE-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12651096#comment-12651096 ] 

Lincoln Baxter III commented on FORGE-398:
------------------------------------------

Update. Only needed on on owning side of @OneToOne relationships, but do we need this in other places as well? Why does @ManyToMany not need this on both sides of the relationship? How do we know which side to put it on? Both sides maybe? It's possible that the UI scaffolding may need to update the entity manually for its own needs, instead of doing this in the EntityPlugin.
                
> PersistencePlugin does not generate Cascade
> -------------------------------------------
>
>                 Key: FORGE-398
>                 URL: https://issues.jboss.org/browse/FORGE-398
>             Project: Forge
>          Issue Type: Feature Request
>            Reporter: Richard Kennard
>
> This is one of those 'we could do it a different way, but it would make the generated code cleaner if...' requests :)
> At present the PersistencePlugin generates:
> 	@OneToOne
> 	private Profile profile;
> 	public Profile getProfile() {
> 		return this.profile;
> 	}
> 	public void setProfile(final Profile profile) {
> 		this.profile = profile;
> 	}
> I would instead like it to generate:
> 	@OneToOne(cascade = CascadeType.ALL)
> 	private Profile profile;
> 	public Profile getProfile() {
> 		return this.profile;
> 	}
> 	public void setProfile(final Profile profile) {
> 		this.profile = profile;
> 	}

--
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