New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDB + Skip by dialect #75
Conversation
…e mapping for Calendar and Byte for BuiltInTypeTest to pass
… MongoDBTupleSnapshot. fix endsWith check on _id to include . prefix. add ToString on AssociationTupleSnapshot. construct DBObject with size instead of HashMap for columnNames+columnValues.
…_, eg. associations_BlogEntry
…ng MongoDB instance
@emmanuelbernard I've added a commit to resolve for https://hibernate.onjira.com/browse/OGM-166 I couldn't find any way to "hardcode" the different hostname in your profile: the project pom always has precedence.
This seems to work fine for Eclipse as well, and I guess IDEA too as it's the same pattern we use in Search to inject the H2 connection properties. P.S. you'll have to set the environment property in the IDE as well |
:( |
After a long fight with Maven about properties I'm tempted to propose this new approach, imho cleaner:
The mongo module will kick in just by having these env settings in your environment. Make sure you IDE has the same environment to be able to launch unit tests. I had to read the env directly from our code as with Maven there was no way to have both the build and the IDE working; I'm copying them to system properties and let the Hibernate configuration read them from there. See 2a9a9ea , which replaces the previous commit in the pull. |
I am closing this pull request as it is superseded by #77 |
This can be merged into master to include MongoDB in it.
If you don't like the idea yet, please merge it in
mongodb
After merging we'll have to let know people using it that the default build does not build (nor test) the mongodb dialect, but the Maven profile
mongodb
needs to be activated, for example: