Hi,
if you don't want to use maven you have to include the dependencies in your project manually. You will find the required libraries inside the distribution package on SourceForge:
In the documentation you will find the information about how to set the configuation:
http://docs.jboss.org/hibernate/ogm/4.0/reference/en-US/html_single/#_using_jpa
And this is the description of the properties you can use with mongodb:
http://docs.jboss.org/hibernate/ogm/4.0/reference/en-US/html_single/#_configuring_mongodb
Assuming that your db is running locally on the default port you only have to set these properties to connect to the db:
Code:
hibernate.ogm.datastore.provider = MONGODB
hibernate.ogm.mongodb.database = your_database_name/code]
For remote servers you will need to add the URL:
[code]
hibernate.ogm.mongodb.host = ...
hibernate.ogm.mongodb.port = ...
Mapping and querying should be the same as in any other Hibernate ORM/JPA example but let me know if you have specific problems.
I'm not sure if there is an existing project at the moment that can be used as a complete example. If you want to provide one it would be much appreciated.
Hope this help,
Davide