[forge-issues] [JBoss JIRA] (FORGE-1399) Cannot create a relationship between two entities
Antonio Goncalves (JIRA)
issues at jboss.org
Wed Jan 15 16:20:32 EST 2014
[ https://issues.jboss.org/browse/FORGE-1399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12936081#comment-12936081 ]
Antonio Goncalves edited comment on FORGE-1399 at 1/15/14 4:18 PM:
-------------------------------------------------------------------
I've installed the latest SNAPSHOT of Forge 2.Beta and I still cannot create realtionships. Here is what happens when I create a {{Speaker}} entity and then try to create a One-to-Many between {{Talk}} and {{Speaker}} :
{code}
[Talk.java]$ jpa-new-field --named speakers --entity org.forge2s.test.model.Speaker --relationshipType One-to-Many
***ERROR*** cannot obtain stream to file: file does not exist: /Users/antoniombp/Documents/Code/temp/Forge/forge2s/src/main/java/String.java
{code}
Don't know where the {{String.java}} comes from
was (Author: agoncal):
I've installed the latest SNAPSHOP of Forge 2.Beta and I still cannot create realtionships. Here is what happens when I create a {{Speaker}} entity and then try to create a One-to-Many between {{Talk}} and {{Speaker}} :
{code}
[Talk.java]$ jpa-new-field --named speakers --entity org.forge2s.test.model.Speaker --relationshipType One-to-Many
***ERROR*** cannot obtain stream to file: file does not exist: /Users/antoniombp/Documents/Code/temp/Forge/forge2s/src/main/java/String.java
{code}
Don't know where the {{String.java}} comes from
> 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.Beta4
> Reporter: Antonio Goncalves
> 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
More information about the forge-issues
mailing list