Author: alfonsonishikawa Date: Tue Oct 27 23:09:18 2020 New Revision: 1882930
URL: http://svn.apache.org/viewvc?rev=1882930&view=rev Log: GORA-338: Updated gora-dynamodb, fixed html entities characters Modified: gora/site/trunk/content/current/gora-dynamodb.md Modified: gora/site/trunk/content/current/gora-dynamodb.md URL: http://svn.apache.org/viewvc/gora/site/trunk/content/current/gora-dynamodb.md?rev=1882930&r1=1882929&r2=1882930&view=diff ============================================================================== --- gora/site/trunk/content/current/gora-dynamodb.md (original) +++ gora/site/trunk/content/current/gora-dynamodb.md Tue Oct 27 23:09:18 2020 @@ -8,14 +8,14 @@ gora-dynamodb module enables [Amazon Dyn ## Gora DynamoDB Properties - gora.properties ``` -gora.datastore.default=org.apache.gora.dynamodb.store.DynamoDBStore -gora.datastore.autocreateschema=true -preferred.schema.name=Person -gora.dynamodb.mapping.file=/path/to/gora-dynamodb-mapping.xml -gora.dynamodb.client=sync -gora.dynamodb.consistent.reads=true -gora.dynamodb.endpoint=http://dynamodb.ap-northeast-1.amazonaws.com/ -gora.dynamodb.serialization.type=dynamo +gora.datastore.default=org.apache.gora.dynamodb.store.DynamoDBStore<br/> +gora.datastore.autocreateschema=true<br/> +preferred.schema.name=Person<br/> +gora.dynamodb.mapping.file=/path/to/gora-dynamodb-mapping.xml<br/> +gora.dynamodb.client=sync<br/> +gora.dynamodb.consistent.reads=true<br/> +gora.dynamodb.endpoint=http://dynamodb.ap-northeast-1.amazonaws.com/<br/> +gora.dynamodb.serialization.type=dynamo<br/> ``` | Property Key | Property Value | Required | Description @@ -43,29 +43,29 @@ gora.dynamodb.serialization.type=dynamo Say we wished to map some user data and store it into DynamoDB. ``` -<gora-otd> +<gora-otd> - <table name="Person" readcunit="1" writecunit="1" package="org.apache.gora.dynamodb.example.generated"> - <attribute name="ssn" type="N" key="hash"/> - <attribute name="date" type="S" key="hashrange"/> - <attribute name="firstName" type="S"/> - <attribute name="lastName" type="S"/> - <attribute name="salary" type="N"/> - <attribute name="visitedplaces" type="SS"/> - </table> + <table name="Person" readcunit="1" writecunit="1" package="org.apache.gora.dynamodb.example.generated"> + <attribute name="ssn" type="N" key="hash"/> + <attribute name="date" type="S" key="hashrange"/> + <attribute name="firstName" type="S"/> + <attribute name="lastName" type="S"/> + <attribute name="salary" type="N"/> + <attribute name="visitedplaces" type="SS"/> + </table> -</gora-otd> +</gora-otd> ``` Within the `gora-otd` mapping configuration, only the 'table' child element is required. -### Table: +### Table - a parameter containing the DynamoDB table `name` (String) e.g. Person - a parameter containing the read capacity - `readcunit` (Number) e.g. 1 More about them [here](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#default-limits-throughput) - a parameter containing the write capacity - `writecunit` (Number) e.g. 1 - a parameter containing the name of the `package` having the table (String) -### Attributes: +### Attributes - a parameter containing the `name` e.g. name, dateOfBirth, ssn and salary - a parameter containing the column `type` to which they belong e.g. (B/L/M/N/S/SS). For more, refer [here](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html) - an optional parameter `key`. The key can be a hash key (partition key/primary key) or a hashrange key (sort key) (in case of composite primary key). The key parameter is left blank for non-key attributes. For more, refer [here](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.CoreComponents.html#HowItWorks.CoreComponents.PrimaryKey)