detachedcriteria Questions
2
How to write a subquery in hibernate which is having multiple subqueries. for example
select * from project_dtls where project_id in
(select project_id from project_users where user_id =
(selec...
Pokey asked 25/10, 2012 at 19:0
1
Consider classes Account, RealAccount, VirtualAccount, and Operation such that:
class Account { }
class RealAccount extends Account { String name; }
class VirtualAccount extends Account { }
class ...
Renaldorenard asked 30/11, 2016 at 2:21
2
I would like to know if i can convert this criteria into a detached criteria. I am not understanding detached criteria correctly. can some one help.
Criteria crit = sessionC.createCriteria(OP_DOCT...
Griswold asked 16/2, 2016 at 5:47
2
I have a table, "Quote", mapped in hibernate that has a composite key of an integer id and a date, and several additional columns. I'd like to write a criteria query that uses a DetachedCriteria to...
Acceptation asked 1/10, 2013 at 19:28
3
Consider the class Operation, and its 3 subclasses:
class Operation {}
class OpA extends Operation { }
class OpB extends Operation { Account account; }
class OpC extends Operation { Account ac...
Deiform asked 16/1, 2015 at 0:39
1
Solved
I have to modify a large Hibernate DetachedCriteria query to fetch some additional associations.
My object graph resembles the structure below, I want to fetch the sales associated with each Car:
...
Cudbear asked 7/11, 2012 at 13:37
2
Solved
In my model I have an abstract "User" class, and multiple subclasses such as Applicant, HiringManager, and Interviewer. They are in a single table, and I have a single DAO to manage them all.
Use...
Lamb asked 7/7, 2010 at 22:52
1
Solved
I want to convert the following subquery to use hibernate subquery:
getCurrentSession().createQuery("from Employee where id in (select adminId from Department where adminId is not null)")
.list()...
Calvin asked 5/12, 2011 at 11:14
3
Solved
Anyone know how to convert an ICriteria into a DetachedCriteria. I need to use an existing ICriteria as part of a subquery using:
.Add(Subqueries.PropertyIn("Name", myDetachedCriteriaSubquery))
...
Jinny asked 18/11, 2009 at 3:12
2
I'm trying to express a SQL query using NHibernate's Criteria API, and I'm running into difficulty because I'm thinking in a database-centric way while NHibernate is object-centric.
SQL (works gre...
Latrice asked 8/11, 2010 at 22:22
2
I'm running into an issue with adding JOIN's to a subquery using DetachedCriteria. The code looks roughly like this:
Criteria criteria = createCacheableCriteria(ProductLine.class, "productLine");
...
Gulp asked 8/4, 2010 at 18:34
1
Solved
These classes have some similar methods but seem to work slightly different.
What's the difference between them and when should I use each of them?
Slaphappy asked 13/9, 2010 at 20:41
1
Solved
Is there any way that criteria for queries can be built on a remote (Swing/SWT etc) client? We've been using the DetachedCriteria functionality in Hibernate for quite some time, but would like to u...
Birch asked 3/9, 2010 at 13:57
1
© 2022 - 2024 — McMap. All rights reserved.