Hi all, I'm playing around with shindig-1.1-beta5 and I'm thinking there is something wrong in the provided JPA (java) provider sample ...
To cut a long story short, FriendDB is NOT annotated with @Entity, @Table & @PrimaryKeyJoinColumn. AFAIK this is not normal but I'm not really sure, can someone confirm this plz ? FriendDB is viewable here : http://svn.apache.org/repos/asf/incubator/shindig/tags/shindig-project-1.1-BETA5-incubating/java/samples/src/main/java/org/apache/shindig/social/opensocial/jpa/FriendDb.java Little patch : --- 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

