mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-06 19:36:03 +00:00
only comment change.
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@18780 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
bdc3b50493
commit
dafa28812a
@ -47,10 +47,7 @@ public void testQueryNewEntityInPC() throws Exception {
|
|||||||
s.persist( d );
|
s.persist( d );
|
||||||
s.persist( e );
|
s.persist( e );
|
||||||
|
|
||||||
// the following would work
|
// find the entity added above
|
||||||
// List depList = s.createQuery("Select d from Dependent d where d.name='LittleP'").list();
|
|
||||||
|
|
||||||
// the following query is not finding the entity 'd' added above
|
|
||||||
Query query = s.createQuery("Select d from Dependent d where d.name='LittleP' and d.emp.empName='Paula'");
|
Query query = s.createQuery("Select d from Dependent d where d.name='LittleP' and d.emp.empName='Paula'");
|
||||||
List depList = query.list();
|
List depList = query.list();
|
||||||
assertEquals( 1, depList.size() );
|
assertEquals( 1, depList.size() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user