That does seem like a mistake. Why don't you raise this in http://issues.apache.org/jira/browse/SHINDIG and attach your patch.
Assuming there isn't some good reason for this, one of the committers will be able to apply your patch. Thanks for getting in touch about this, Ben Smith On 12 Jan 2010, at 09:16, Thomas Sauzedde wrote: > 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 > >

