[Neo4j] Add support for references to embeddable properties in JP-QL

Description

Environment

None

Activity

Show:
Gunnar Morling
March 6, 2015, 11:42 AM

PR is merged. Leaving this issue open as a reminder to fix one remaining minor issue mentioned at https://github.com/hibernate/hibernate-ogm/pull/492.

Gunnar Morling
March 11, 2015, 11:36 AM

Changed the title to reflect that this is about Neo4j only, as it already worked before for MongoDB and the HSEARCH-based parser backend.

Markus Gritsch
March 14, 2015, 11:13 AM

Hi,

nice feature, but actually its not working as expected. Please verify that the following returns multiple elements and not just the first one.

WithEmbedded with = new WithEmbedded( 1L, new AnEmbeddable( "string 1", new AnotherEmbeddable( "string 2", 2 ) ) );
with.setYetAnotherEmbeddable( new AnEmbeddable( "string 3", null ) );

WithEmbedded with2 = new WithEmbedded( 2L, new AnEmbeddable( "string 10", new AnotherEmbeddable( "string 20", 20 ) ) );
with2.setYetAnotherEmbeddable( new AnEmbeddable( "string 30", null ) );

persist these elements

List<?> result = session.createQuery( "from WithEmbedded e where e.anEmbeddable.embeddedString = 'string 1'" ).list();

returns two elements instead of just the first one

Thanks!

Davide D'Alto
March 14, 2015, 11:39 AM

Thanks ,

for spotting this one. I've created OGM-783

Assignee

Davide D'Alto

Reporter

Emmanuel Bernard

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Blocker
Configure