views:

23

answers:

1

I know how to create table in google bigtable.My constriant is how to set primary key for my table using jpa.

A: 

Bigtable is not a RDBMS. It does not have primary/foreign keys, constraints etc. you have key/value pairs, you can think of key's are primary key's since its already unique for a row. and value can be anything that you can serialize into a string.

Numenor
ok but in this link they using primarykeyhttp://code.google.com/appengine/docs/java/datastore/creatinggettinganddeletingdata.htmlas follows@PrimaryKey private String name;