criteria
Hibernate Criteria Left Joining Two Tables
I have two entities, say Business and Area. Relevant properties: Business - area, area2, code Area - areaId, areaName[详细]
2023-02-09 15:49 分类:问答Help with NHibernate Criteria query groupby property
I have the below query, SearchTemplate Template = new SearchTemplate(); Template.Criteria = DetachedCriteria.For(typeof(table1));[详细]
2023-02-07 19:13 分类:问答how to construct a dynamic query for a many to one relationship using the CriteriaBuilder of JPA 2.0
I stucked constructing a dynamic query using the CriteriaBuilder in JPA 2.0. My application isSpring 3.0, Hibernate 3.6.0 + JPA 2.0based. Actually I have two entities one is taUser and another one is[详细]
2023-02-07 18:21 分类:问答Using NHibernate, how can I retrieve a list of composite-element objects given a parent's ID?
I presume this is an elementary question, but can\'t seem to find the answer. Using NHibernate, given a mapping with a one-to-many composite-element:[详细]
2023-02-07 02:13 分类:问答Hibernate get object with linked objects
I have a problem with my hibernate mapping and queries. I have an object A which have a relation with B and C.[详细]
2023-02-06 08:52 分类:问答Hibernate Criteria API orderBy and Embedded element
Lets say I have a Report entity. Inside it there is @Embeddable ReportPeriod which has Integer month and Integer year fields. When i try to sort my Report report by its ReportPeriod reportPeriod it so[详细]
2023-02-06 04:30 分类:问答Question regarding chaining multiple any_of criteria #Mongoid
I have a requirement where I need to run a MongoDB query like the following: db.collection.find({ $or : [{\"field1\" : \"value1\"}, {\"field2\" : \"value2\"}],[详细]
2023-02-06 00:40 分类:问答Hibernate criterion that matches against everything in some cases
is it possible to do something like criteria.add(Expression.eq(\"product\", \" * \")) for it to match everything ?[详细]
2023-02-06 00:13 分类:问答How to make a JPA query with LEFT OUTER JOIN
Based on these two tables (and their corresponding entities) : profiles(id, email, name) items(id, profile_id, rank, price)[详细]
2023-02-05 14:16 分类:问答Simple LINQ to SQL extension method
How would I write a simple LINQ to SQL extension method called \"IsActive\" which would contain a few basic criteria checks of a few different fields, so that I could reuse this \"IsActive\" logic all[详细]
2023-02-05 00:49 分类:问答