You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gora.apache.org by al...@apache.org on 2020/10/27 23:17:21 UTC
svn commit: r1882931 - /gora/site/trunk/content/current/gora-dynamodb.md
Author: alfonsonishikawa
Date: Tue Oct 27 23:17:20 2020
New Revision: 1882931
URL: http://svn.apache.org/viewvc?rev=1882931&view=rev
Log:
Edited formatting
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=1882931&r1=1882930&r2=1882931&view=diff
==============================================================================
--- gora/site/trunk/content/current/gora-dynamodb.md (original)
+++ gora/site/trunk/content/current/gora-dynamodb.md Tue Oct 27 23:17:20 2020
@@ -7,16 +7,15 @@ gora-dynamodb module enables [Amazon Dyn
[TOC]
## Gora DynamoDB Properties - gora.properties
-```
-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/>
-```
+
+ 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
| Property Key | Property Value | Required | Description
| ------ | ------ | ------ | ------
@@ -42,20 +41,15 @@ gora.dynamodb.serialization.type=dynamo<
Say we wished to map some user data and store it into DynamoDB.
-```
-<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>
-
-</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"/>
+ </gora-otd>
Within the `gora-otd` mapping configuration, only the 'table' child element is required.
@@ -70,3 +64,4 @@ Within the `gora-otd` mapping configurat
- 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)
+