[
https://issues.jboss.org/browse/FORGE-488?page=com.atlassian.jira.plugin....
]
Esteve Aviles commented on FORGE-488:
-------------------------------------
Hi,
The explanation is: enable the functionality that permits extend an Entity class and
generate the corresponding inheritance strategy annotations.
For example, for InheritanceType.SINGLE_TABLE , CLI command could be:
entity --named LargeProject --package ~.model --extends ~.model.Project.java
--discriminatorColumnName projectType --discriminatorValue LARGE;
It should add the following annotations to Project.java
@Inheritance
@DiscriminatorColumn(name="PROJECT_TYPE")
And create LargeProject.java like:
@Entity
@DiscriminatorValue("LARGE")
public class LargeProject extends Project {
...
}
Enable JPA/Persistence inheritance
----------------------------------
Key: FORGE-488
URL:
https://issues.jboss.org/browse/FORGE-488
Project: Forge
Issue Type: Feature Request
Reporter: Esteve Aviles
Labels: inheritance, jpa
Enable JPA/Persistence inheritance
--
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