[forge-issues] [JBoss JIRA] (FORGE-446) Support use of public fields as well as getters and setters
Pete Muir (JIRA)
jira-events at lists.jboss.org
Wed Jan 25 08:44:49 EST 2012
[ https://issues.jboss.org/browse/FORGE-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated FORGE-446:
----------------------------
Summary: Support use of public fields as well as getters and setters (was: Support exapansion of @Embeddable entities in scaffolded views)
Issue Type: Bug (was: Feature Request)
Description:
Given an entity
{code:java}
@Embeddable
public class Address {
public String street;
public String city;
public String country;
}
{code}
and a use
{code:java}
@Embedded
private Address address;
{code}
If the embeddable entity had getters and setters, this would have correctly generated an embedded CRUD, however, as it was public fields it didn't.
was:
Given an entity
{code:java}
@Embeddable
public class Address {
public String street;
public String city;
public String country;
}
{code}
and a use
{code:java}
@Embedded
private Address address;
{code}
I would like to see that expanded in view tables, searches, edit screens as in all cases an Embeddable object is just extracted for reuse.
> Support use of public fields as well as getters and setters
> -----------------------------------------------------------
>
> Key: FORGE-446
> URL: https://issues.jboss.org/browse/FORGE-446
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Reporter: Pete Muir
> Assignee: Richard Kennard
>
> Given an entity
> {code:java}
> @Embeddable
> public class Address {
>
> public String street;
>
> public String city;
>
> public String country;
> }
> {code}
> and a use
> {code:java}
> @Embedded
> private Address address;
> {code}
> If the embeddable entity had getters and setters, this would have correctly generated an embedded CRUD, however, as it was public fields it didn't.
--
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