[ 
https://issues.apache.org/jira/browse/SHINDIG-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799171#action_12799171
 ] 

Thomas Sauzedde commented on SHINDIG-1263:
------------------------------------------

Here is a quick diff / patch to correct this if this is really an issue ...


--- tmp/.diff_GapCZF
+++
home/tsauzedde/Work/Shindig/shindig-project-1.1-BETA5-incubating/java/samples/src/main/java/org/apache/shindig/social/opensocial/jpa/FriendDb.java

@@ -25,12 +25,15 @@
 
 import javax.persistence.Basic;
 import javax.persistence.Column;
+import javax.persistence.Entity;
 import javax.persistence.GeneratedValue;
 import javax.persistence.Id;
 import javax.persistence.JoinColumn;
 import javax.persistence.ManyToOne;
 import javax.persistence.MapKey;
 import javax.persistence.OneToMany;
+import javax.persistence.PrimaryKeyJoinColumn;
+import javax.persistence.Table;
 import javax.persistence.Version;
 
 import java.util.Map;
@@ -38,6 +41,9 @@
 /**
  * Fiends relates users to one another with attributes.
  */
+...@entity
+...@table(name = "friend")
+...@primarykeyjoincolumn(name = "oid")
 public class FriendDb implements DbObject {
   /**
    * The internal object ID used for references to this object. Should
be generated by the



> [JPA sample] Issue in FriendDB : missing JPA annotations
> --------------------------------------------------------
>
>                 Key: SHINDIG-1263
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1263
>             Project: Shindig
>          Issue Type: Bug
>          Components: Java
>    Affects Versions: 1.1-BETA5
>            Reporter: Thomas Sauzedde
>
> In the JPA sample sub-module, the FriendDb class is NOT annotated with 
> @Entity, @Table & @PrimaryKeyJoinColumn.
> I'm not absolutely sure, but AFAIK this is not really normal ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to