-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: ManyToOne with optional=true ignored
PostPosted: Mon Jun 19, 2006 12:31 pm 
Regular
Regular

Joined: Wed Jan 11, 2006 12:49 pm
Posts: 64
Location: Campinas, Brazil
I'm using Hibernate 3.2CR1, which is shipped with JBoss 4.0.4 GA (or is it Hibernate 3.2CR2?). There is an entity with an embedded class, and the latest has some @ManyToMany mappings with optional=true. When I do a query like "select obj.x, obj.y from MyClass obj where obj.id=:id", the generated SQL query has inner joins as if the embedded many-to-one associations had optional=false. I added nullable=true to the @JoinTable but nothing changed. Do you have any idea of what is going on?

_________________
Henrique Sousa
Don't forget to rate useful responses


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.