[JAVA-1531] Comment on: "mongodb-ecosystem/tutorial/use-java-dbobject-to-perform-saves.txt" Created: 29/Oct/14 Updated: 08/Oct/15 Resolved: 23/Jun/15 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Documentation |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Docs Collector User (Inactive) | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | collector-298ba4e7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 Enterprise, SP1, 64 bits Location: http://docs.mongodb.org/ecosystem/tutorial/use-java-dbobject-to-perform-saves/#java-dbobject-to-perform-saves |
||
| Description |
|
Hi. When I implement Java DBObject to Perform Saves' exemple exactly as described in the tutorial, I get the following exception : Exception in thread "main" java.lang.reflect.InvocationTargetException Could you tell if its a known bug or clarify how to persist a Java object in MongoDB? Best regards, Lionel Ketterer Reporter: Lionel Ketterer |
| Comments |
| Comment by Jeffrey Yemin [ 23/Jun/15 ] | ||||||||||||||||||||||||||||||||||||
|
That page has been removed from the documentation entirely, so closing this issue. | ||||||||||||||||||||||||||||||||||||
| Comment by Jeffrey Yemin [ 05/Nov/14 ] | ||||||||||||||||||||||||||||||||||||
|
That's a poorly written example. In general, if you want to use POJOs it's better to use a wrapper like Morphia or Spring Data MongoDB. But if you just want to get that example working, try implementing the Tweet class like this:
|