Antonio Goncalves created FORGE-2057:
----------------------------------------
Summary: Attributes of Mapped Superclass should be protected and not private
Key: FORGE-2057
URL:
https://issues.jboss.org/browse/FORGE-2057
Project: Forge
Issue Type: Feature Request
Components: Java EE
Affects Versions: 2.12.0.Final
Reporter: Antonio Goncalves
When creating a new Mapped Superclass, attributes are private. So the following command :
{code}
jpa-new-mapped-superclass --named Person ;
jpa-new-field --named firstName --length 50 --columnName first_name ;
{code}
Will generate :
{code}
@MappedSuperclass
public class Person {
@Column(length = 50, name = "first_name")
private String firstName;
...
}
{code}
Because mapped superclass are to be inherited, it would be better to have protected
attributes so subclasses could use the attributes
{code}
@MappedSuperclass
public class Person {
@Column(length = 50, name = "first_name")
protected String firstName;
...
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)