detachedcriteria
Hibernate Subquery and DetachedCriteria
I have created a DetachedCriteria that is retrieving estates that have the isApproved and isPublished set to true. It is defined in this way:[详细]
2022-12-29 05:49 分类:问答Enum mapping and criteria
I have two entities: \"Parent\" & \"Child\" Child is mapped in Parent like this: Code: <many-to-one name=\"child\" class=\"org.demo.Child\"[详细]
2022-12-28 11:49 分类:问答Using an interface for a subquery in NHibernate
I normally query interfaces using DetachedCriteria in NHibernate: DetachedCriteria crit = DetachedCriteria.For<IParent>();[详细]
2022-12-28 03:36 分类:问答In NHibernate, how do I combine two DetachedCriteria instances
My scenario is this: I have a base NHibernate query to run of the form (I\'ve coded it using DetachedCriteria , but describe it here using SQL syntax):[详细]
2022-12-26 06:30 分类:问答Hibernate Criteria: Perform JOIN in Subquery/DetachedCriteria
I\'m running into an issue with adding JOIN\'s to a subquery using DetachedCriteria. The code looks roughly like this:[详细]
2022-12-25 22:28 分类:问答Hibernate Criteria: Add restrictions to Criteria and DetachedCriteria
Currently our queries add a variety of Restrictions to ensure the results are considered active or live. These Restrictions are used in several places/queries so a method was setup similar to[详细]
2022-12-25 20:18 分类:问答NHibernate Lambda Extensions can't use any alias query on DetachedCriteria
I\'m trying to write a simple query that requires an alias as it\'s a Many-To-Many assocation however I can\'t get it to work with NH Lambda Extensions. It always gives me a compile error even though[详细]
2022-12-23 03:39 分类:问答How do i create a Hibernate Criteria to order by some properties of collection
Say, i have an entity 开发者_StackOverflowthat has a history of operations as a collection. I want to sort entities by the date of the latest operation (it\'s the first element of history).[详细]
2022-12-21 03:06 分类:问答Criteria query with restriction across a joined subclass problem
I have the following graph: OrderLine OrderLineExtension OrderLineExtensionA OrderLineExtensionB OrderLineExtensionC[详细]
2022-12-17 23:00 分类:问答NHibernate: getting multiple entities with subset of child collection?
My classes look something like this (I include only the relevant properties): public class Order { public virtual Customer Customer { get; set; }[详细]
2022-12-17 17:19 分类:问答