I\'ve problem to create a HQL statement for this SQL (Oracle). SELECT CASE WHEN Col开发者_如何学Pythonumn1 = \'VALUE1\' THEN (
I need to use the HQL object constructor feature, e.g: select new SomeClass(i.Id, i.Name) from Item i...
I would like an opinion about qu开发者_StackOverflow社区erying the database using HQL or SQL Statements, concerning simplicity, complexity and performance.With HQL you are operating on a class based d
I have two entities, Location and Industry, and a link-table between them. I\'ve configured a many-to-many relationship, in both directions, between the two entities.
How can I execute the following query using Castle ActiveRecords and LINQ or HQL? SELECT a.id, s.classes, COUNT(p.id), MAX(p.date) AS last, MIN(p.date) AS first
I have an object graph that looks like this: class A () { int id; IEnumerable<B> bees; } class B() { int id;
Consider t开发者_开发知识库his domain class: class House { Integer room Integer bathroom Date builtDate
I should convert to the fallowing SQL-Query to NHibernate HQL (NHibernate 3.2). But I don\'t know, how I have to translate the FLOOR, DATEDIFF and GETDATE.
I am trying to grab data from the DB of a particular table, where there is either no join to a another table, or there is but it isn\'t the right Data.
How can i access the elements from the list created as below? I tried creating a class containing a String and an int and cast to it but it doesn\'t work.