I have two entities, say Business and Area. Relevant properties: Business - area, area2, code Area - areaId, areaName
I have the below query, SearchTemplate Template = new SearchTemplate(); Template.Criteria = DetachedCriteria.For(typeof(table1));
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
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:
I have a problem with my hibernate mapping and queries. I have an object A which have a relation with B and C.
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
I have a requirement where I need to run a MongoDB query like the following: db.collection.find({ $or : [{\"field1\" : \"value1\"}, {\"field2\" : \"value2\"}],
is it possible to do something like criteria.add(Expression.eq(\"product\", \" * \")) for it to match everything ?
Based on these two tables (and their corresponding entities) : profiles(id, email, name) items(id, profile_id, rank, price)
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