-->
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.  [ 2 posts ] 
Author Message
 Post subject: classes which are marked lazy="true"...
PostPosted: Sat Nov 18, 2006 6:11 am 
Newbie

Joined: Sat Nov 18, 2006 6:04 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 1.0.3

hi everyone
1-i have classes marked with lazy=true, which makes them as proxies. when i load an object by using ISession.Load(type,id), the type is returned as the type of the proxy which causes a type not found exception when calling ISession.Delete(obj).
Please help me
thanks in advanc

Using Cuyahoga style for opening and closing sessions

2- Is it possible to do queries in the form of
"select ... from a where a.id not in
(select id from b)"
using hql, also are there any good documentation form nhibernate hql language or is knowledge of sql enough, and if knowledge of sql is enough what are the limitations of hql compared to sql, meaning what can i not do with hql that i can do with sql in respect to select statements


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 4:00 pm 
Regular
Regular

Joined: Mon Aug 28, 2006 6:35 am
Posts: 66
Location: Middle East
i can't help you with 1-

you said:
2- Is it possible to do queries in the form of
"select ... from a where a.id not in
(select id from b)"

my answer: yes you can use " in " and " not in " keywords

go to the nhibernate section of this website and you can get documentation that you can download for free.. you can find links to other websites too

Regards,
Jojo

_________________
In Code We Trust


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

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.