[
https://issues.apache.org/jira/browse/GORA-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696205#comment-13696205
]
Lewis John McGibbney commented on GORA-199:
-------------------------------------------
Hi Damien, I uploaded a new patch which attempt sot get the correct
gora-mongo-mapping.xml, however I do not think that it is correct as I get NPE
when I attempt to run the test suite against the module. I debugged this down
to the creation of the employeeStore in the core tests and right enough this is
where the GoraException is thrown.
Here is the mapping file I've tried so far, can you please comment.
{code:xml}
<gora-orm>
<class name="org.apache.gora.examples.generated.Employee"
keyClass="java.lang.String" document="frontier">
<field name="name" docfield="name" type="string"/>
<field name="dateOfBirth" docfield="dateOfBirth" type="int64"/>
<field name="ssn" docfield="ssn" type="string"/>
<field name="salary" docfield="salary" type="int32"/>
<field name="boss" docfield="boss" type="document"/>
<field name="webpage" docfield="webpage" type="document"/>
</class>
<class name="org.apache.gora.examples.generated.WebPage"
keyClass="java.lang.String" document="webpage">
<field name="url" docfield="url" type="string"/>
<field name="content" docfield="content" type="binary"/>
<field name="parsedContent" docfield="pContent" type="binary"/>
<field name="outlinks" docfield="links.out" type="document"/>
<field name="metadata" docfield="metadata" type="document"/>
</class>
<class name="org.apache.gora.examples.generated.TokenDatum"
keyClass="java.lang.String" keyspace="TokenDatum">
<field name="count" docfield="count" qualifier="int32"/>
</class>
</gora-orm>
{code}
> Support MongoDB in GORA
> -----------------------
>
> Key: GORA-199
> URL: https://issues.apache.org/jira/browse/GORA-199
> Project: Apache Gora
> Issue Type: New Feature
> Components: storage
> Affects Versions: 0.2.1
> Reporter: Fabien Poulard
> Priority: Minor
> Labels: contrib
> Fix For: 0.4
>
> Attachments: 0001-GORA-199-MongoDB-Support-in-Gora.patch,
> GORA-199.patch, GORA-199v2.patch, gora-mongodb-src.tar.gz
>
>
> Support 10gen MongoDB datastore in GORA.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira