Add integration test with Spring

Description

Users expect to be able to use Spring with OGM but we don't have an integration test at the moment.
This is also helpful as demo or example.

Environment

None

Activity

Show:
Sergey Chernolyas
December 4, 2017, 1:56 PM

Hi !

You can use Spring Data over JPA. In this way, Hibernate OGM as JPA implementation works fine. I will send example for you.

Bato-Bair Tsyrenov
December 7, 2017, 12:09 PM
Edited

Encountering the following Exception: org.hibernate.ogm.exception.NotSupportedException: - criteria queries are not supported yet.

It is impossible to integrate with Spring as of today, it is though possible to just define and inject custom beans that will provide you with EntityManagerFactory and TransactionManager, but this is as good as just using java SE.

, The work on this issue can be continued after is resolved.

Sergey Chernolyas
December 7, 2017, 12:24 PM

Hi

Could you please describe why criteria api blocks test for Spring ?

Bato-Bair Tsyrenov
December 12, 2017, 10:16 AM
Edited

,
Encountering java.lang.NoSuchMethodError: org.hibernate.boot.model.source.spi.AttributePath.isPartOfCollectionElement()Z

gist link to log

Bato-Bair Tsyrenov
December 12, 2017, 11:05 AM

fixed

Spring boot pulls int hibernate:orm 5.0.12 and hibernate:ogm 5.1+ requires orm version 5.1+

Assignee

Bato-Bair Tsyrenov

Reporter

Davide D'Alto

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

Yes, likely

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major
Configure