|
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!
|