Beginner |
 |
Joined: Fri Nov 28, 2003 11:21 am Posts: 49 Location: Buenos Aires, Argentina
|
Hi! I have 2 classes A, B with a one-to-one mapping. In the xml of class A, I put:
....
<one-to-one name="b" class="B"/>
....
then, in the xml of B, I put:
...
<one-to-one name="a" class="A" constrained="true"/>
...
when I excute this query:
...
List list = session.createQuery("from A a where a.b is null").list();
...
it returns all Objects 'a' where a.b isn't null and a.b is null when I just expected all Objects 'a' where a.b isn't null.
Any help?
[b]Hibernate version:[/b]
2.1.6
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:[/b]
MS SQL Server 2000
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
|
|