[
https://issues.jboss.org/browse/FORGE-1399?page=com.atlassian.jira.plugin...
]
Antonio Goncalves commented on FORGE-1399:
------------------------------------------
When I type this I get :
{code}
[Book.java]$ jpa-new-field --named authors --typeName
com.pluralsight.persistence.module07.model.Author --relationshipType One-to-Many
***ERROR*** No Facet of type [interface org.jboss.forge.addon.javaee.jpa.JPAFacet] is
installed.
{code}
I need to run {{jpa-setup}} which I had already typed (but I had to quit Forge and go
back)
{code}
[Book.java]$ jpa-setup
***SUCCESS*** Persistence (JPA) is installed.
[persistence.xml]$ jpa-new-field --named authors --typeName
com.pluralsight.persistence.module07.model.Author --relationshipType One-to-Many
***SUCCESS*** Relationship One-to-Many created
{code}
{{--typeName}} is quite confusing, {{--targetType}} is better and follows the other
commands. If you rename this, also rename {{--entity}} to {{--targetEntity}}
Cannot create a relationship between two entities
-------------------------------------------------
Key: FORGE-1399
URL:
https://issues.jboss.org/browse/FORGE-1399
Project: Forge
Issue Type: Sub-task
Components: UI - Shell
Affects Versions: 2.0.0.CR2
Reporter: Antonio Goncalves
Assignee: George Gastaldi
Priority: Critical
Fix For: 2.x Future
I've created a {{Country}} entity and then a {{Customer}}. When I create a
relationship between both, I have an error :
{code}
[Customer.java]$ jpa-new-field --named country --entity
org.agoncal.application.petstore.model.Country --relationshipType Many-to-One
***ERROR*** No Facet of type [interface org.jboss.forge.addon.javaee.jpa.JPAFacet] is
installed.
[Customer.java]$ jpa-setup
***ERROR*** No Facet of type [interface org.jboss.forge.addon.javaee.jpa.JPAFacet] is
installed.
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira