[forge-issues] [JBoss JIRA] (FORGE-298) Support @Entity relationships in generated pages
Lincoln Baxter III (Commented) (JIRA)
jira-events at lists.jboss.org
Mon Dec 12 17:55:09 EST 2011
[ https://issues.jboss.org/browse/FORGE-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12650255#comment-12650255 ]
Lincoln Baxter III commented on FORGE-298:
------------------------------------------
Hey Richard,
A few notes here.
1. For some reason, it is possible to add "nothing" to an entity when you click "add." This should probably instead do nothing?
2. Bi-directional relationships seem to be broken in one direction, for instance, after running the following commands:
{code}new-project --named storms --topLevelPackage com.storms
scaffold setup
persistence setup --provider HIBERNATE --container JBOSS_AS7
entity --named Hurricane
field string --named name
entity --named Continent
field string --named name
field manyToMany --named hurricanes --fieldType com.storms.domain.Hurricane.java --inverseFieldName continents
scaffold from-entity com.storms.domain.*{code}
I am able to add a Continent to a Hurricane (via the Edit Hurricane page,) but I am not able to add a Hurricane to a Continent (via the Edit Continent page.)
Not sure what is wrong here.
~Lincoln
> Support @Entity relationships in generated pages
> ------------------------------------------------
>
> Key: FORGE-298
> URL: https://issues.jboss.org/browse/FORGE-298
> Project: Forge
> Issue Type: Feature Request
> Components: Scaffold
> Affects Versions: 1.0.0.Beta2
> Reporter: Lincoln Baxter III
> Fix For: 1.0.0.Final
>
>
> Represent and handle all JPA entity relationship bindings: @OneToOne @ManyToOne and @OneToMany, @ManyToMany classes, such that entities created can be selected on pages in which those entities are referenced by their "related" objects.
--
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