Comment

Nelson
error,
March 22, 2008 at 9:54 PM

crit.setProjection(Projections.distinct(Projections.countDistinct("insuranceName")));

there is a error in the above line of code when i run the program.

However, if i remove the Projections.distinct function it work fine with correct result.
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Hibernate Questions

hibernate projection
hibernate projection  why projection are used and in what situation do we need to use projections 

Hibernate Tutorial Example

Hibernate Projections Tutorials and Examples
Hibernate Projections Tutorials and Examples       Hibernate Projections In this section, you will learn about the hibernate projections with an appropriate example 

Hibernate Tutorial Example

Hibernate Projections
Hibernate Projections       In this section, you will learn about the hibernate projections with an appropriate example. Projections: The package Criteria is used as a framework 

Hibernate Tutorial Example

Hibernate Projections (rowCount or countDistinct)
Hibernate Projections (rowCount or countDistinct)   ... the hibernate projection with an example.  Projection Interface... are provided by the Projections factory class. The Projection interface might 

Hibernate Tutorial Example

Hibernate Criteria Projections
Hibernate Criteria Projections The Hibernate Criteria Projection contains all the projections instances. You can add many projection in to it by calling... example on projection CriteriaProjection.java package net.roseindia.main 

Hibernate Tutorial Example

Hibernate Projection Count
Hibernate Projection Count       In this section, you will learn to hibernate projection count. The example demonstrates the rowCount() method of the projection interface 

Hibernate-Tutorials

projection criteria hibernate Example
projection criteria hibernate Example In this Example, We will discuss about hibernate criteria query, The class org.hibernate.criterion.Projections  is used by applications as a framework for building new kinds of Projection 

Hibernate-Tutorials

Hibernate Criteria Projection
In this tutorial we are going to discuss about Hibernate Criteria Projection with example 

Hibernate-Tutorials

Hibernate Criteria Projections, Aggregation and Grouping
Hibernate Criteria Projections, Aggregation and Grouping In this tutorial you will learn about the Projections, Aggregation and Grouping in Criteria Query. In Criteria query a query result set projection is represented as object 

Hibernate Questions

HibernateCriteriaAggregate-Projection
(Employee.class); //Max Projection criteria.setProjection...(); System.out.println("Max salary:-"+list.get(0)); //Min Projection...)); //Avg Projection criteria.setProjection(Projections.avg("salary 

Hibernate Questions

hibernate
hibernate  why we should use hibernate projection 

Hibernate Tutorial Example

Hibernate Projection Example (Sum)
Hibernate Projection Example (Sum)       In this section, you will learn to hibernate aggregate function like: sum() using hibernate projection.  The following example 

Hibernate-Tutorials

Hibernate Criteria Grouping Example
Hibernate Criteria Grouping Example In this tutorial you will learn about the Hibernate Criteria Projection Grouping. As we were using a 'group by'... of projection are defined. Click Here for Hibernate Criteria Ordering tutorial 

Hibernate Questions

Hibernate error - Hibernate
Hibernate error  I had run hibernate first example but it an error appeared. Error is java.lang.NullPointerException.  Hi Friend... want more examples of Hibernate please visit the following link. http 

Hibernate Questions

Hibernate error - Hibernate
Hibernate error  I hava following error while running hibernate example in eclipse. I placed hibernate.cfg.xml and contact.hbm.xml in bin/roseindia/tutorial/hibernate. But I have following error. log4j:WARN No appenders 

Hibernate Questions

Error java.lang.NullPointerException hibernate - Hibernate
Error java.lang.NullPointerException hibernate  hello everybody; I'm developping a web application using Struts 1.1 , Hibernate 3.1 and Mysql , and I've got this message error: Etat HTTP 500 

Hibernate Questions

Hibernate
of Hibernate. I followed all th steps as given in the tutorial, but a build error... not be resolved. How can i rectify that error?   Hi, The error comes when hibernate library files are not included in the project build path. Please download 

Hibernate Questions

hibernate
hibernate   i am using hibernate3.2.5 and oracle9i. First i set classpath to ojdbc14.jar and all the hibernate jar files to path env variable.After that when i try to execute the program i got an error "unknown oracle major 

Hibernate Tutorial Example

Hibernate Criteria average example
Hibernate Criteria average example - Learn how to perform Hibernate Criteria... of org.hibernate.criterion.Projections factory for getting the Projection instance for performing the average... of the Hibernate Criteria API which is used to find the average, maximum or minimum values 

Hibernate Questions

hibernate sql error - Hibernate
hibernate sql error  Hibernate: insert into EMPLOYE1 (firstName..., Please visit the following links: http://www.roseindia.net/hibernate/index.shtml http://www.roseindia.net/hibernate/insert-data-database.shtml Hope 

Hibernate Questions

jsp-Hibernate Error - Hibernate
jsp-Hibernate Error  hi, my problem is, I designed an Interface where i am tring to listing the all rows of a table using Iterator and putted a link for deleting each row. I am deleteing row using row id of that record.it delete 

Hibernate-Tutorials

Hibernate Criteria Ordering Example
Hibernate Criteria Ordering Example In this tutorial you will learn about the Hibernate Criteria Projection Ordering. In Hibernate Criteria query to arrange... then added the addOrder(Order.asc|desc()) method for ordering the projections 

Hibernate Questions

hibernate...............
hibernate...............  goodevining. I am using hibernate on eclipse, while connection to database Orcale10g geting error .........driver ARNING: SQL Error: 0, SQLState: null 31 May, 2012 8:18:01 PM 

Hibernate Questions

Hibernate - Hibernate
Hibernate  Hello Deepak as you answer posted this is solution of if any file not found but my question is .. Error is ::: Error in reading contact.hbm.xml contact.hbm.xml is my hibernate mapping file. So please read 

Hibernate Questions

Hibernate - Hibernate
Hibernate  when I run Hibernate Code Generation wizard in eclipse I'm getting the following error. I added ojdbc14.jar to my build path. Still I'm getting this error. please let me know, how to resolve 

Hibernate Questions

Compilation error. Hibernate code - Hibernate
Compilation error. Hibernate code   Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory...) how to rectify that error in hibernate  Hi Friend, You have 

Hibernate Questions

Hibernate - Hibernate
Hibernate  I am trying to connect hibernate with ejb2.0 stateless session bean, my application sucessfully deploy in weblogic server but when i execute the client application i got an error message that class not found exception 

Hibernate-Tutorials

Hibernate Criteria GroupBy Example
Hibernate Criteria GroupBy Example In this Example, We will discuss about hibernate criteria query, The class org.hibernate.criterion.Projections  is used by applications as a framework for building new kinds of Projection 

Hibernate-Tutorials

Hibernate Criteria RowCount Example
Hibernate Criteria RowCount Example In this Example, We will discuss about hibernate criteria query, The class org.hibernate.criterion.Projections  is used by applications as a framework for building new kinds of Projection 

Hibernate Questions

hibernate - Hibernate
Hibernate; import org.hibernate.Session; import org.hibernate.*; import... got the following error SEVERE: Error parsing XML: XML InputStream(8...   Hi Radhika, i think, you hibernate configuration 

Hibernate Questions

hibernate - Hibernate
hibernate  I have written the following program package Hibernate; import org.hibernate.Session; import org.hibernate.*; import... error SEVERE: Error parsing XML: /hibernate.cfg.xml(4) Content is not allowed 

Hibernate Questions

Hibernate - Hibernate
in Hibernate in Tomcat i got an error like this HTTP Status 500... Exception report message description The server encountered an internal error..., This type of error comes when JTA(Java Transaction API) is not present 

Hibernate Questions

Hibernate delete a row error - Hibernate
Hibernate delete a row error  Hello, I been try with the hibernate delete example (http://www.roseindia.net/hibernate/hibernate-delete.shtml... - Hibernate 3.0rc1 10:46:41,397 INFO Environment:469 - hibernate.properties 

Hibernate Questions

connection proxy error in hibernate
connection proxy error in hibernate  while we get connection through hibernate we arise an error connection proxy error while we are using multiple connection's 

Blog

Sitemap Hibernate Tutorial
| Hibernate Projections | Hibernate Projections (rowCount or countDistinct) | Hibernate Projection Count | Hibernate Projection (Sum) | Hibernate How...; Tutorial Section Introduction to Hibernate 3.0 | Hibernate Architecture 

Hibernate Questions

error in hibernate example
error in hibernate example  i am getting error in this.... log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. Resource: Contact.hbm.xml 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Hibernate Questions

hibernate code - Hibernate
hibernate code  while generating the hibernate code i got the error like org.hibernate.MappingException 

Hibernate Questions

Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got these type errors...can youme please? Exception in thread "main" java.lang.ExceptionInInitializerError at com.StoreData.main(StoreData.java:11) Caused 

Hibernate Tutorial Example

Hibernate Criteria Examples
projection criteria hibernate Example Hibernate Criteria setFirstResult Example... Criteria Nested Properties Hibernate Criteria Projections Hibernate Criteria...Hibernate Criteria Examples In this section we are giving many example 

Hibernate Questions

SEVERE: Error listenerStart - Hibernate
SEVERE: Error listenerStart  what is SEVERE: Error listenerStart 

Hibernate Questions

java compilation error - Hibernate
java compilation error  hi, i have made an registration page whosevalues should be inserted into database. i have used hibernate and eclipse it is working fine. but when i make a war file and deploy it using ant and then run 

Hibernate Questions

Database Error - Hibernate
Database Error  Hi, I am working with Struts 1.2---- AJAX-----Hibernate 3.0 --- MySQL 5.0. At the time of inserting/fetching from Database by multiple/single users I am getting the following errors. Lock wait timeout 

Hibernate Questions

Hibernate code - Hibernate
Hibernate code   I am facing a problem in hibernate program. Error is ::: Error in reading contact.hbm.xml contact.hbm.xml is my hibernate mapping file.  Hi Friend, check whether you have specified correct path 

Hibernate Questions

connection proxy error in hibernate
connection proxy error in hibernate  while we get connection through hibernate we arise an error connection proxy error while we are using multiple error message is like below statements SEVERE: Servlet.service() for servlet 

Hibernate Questions

Reg Hibernate - Hibernate
Reg Hibernate  Hi, Iam learning hibernate. Iam got this error... getting this error? regards usha.   Hi Read for more details, http://www.roseindia.net/hibernate 

Hibernate Questions

hibernate firstexample - Hibernate
hibernate firstexample  Hi all. i m new with hibernate,when i m trying to run my first application i m getting following exception. Error reading resource: Employee.hbm.xml give me the solution. Thank you 

Hibernate Questions

Websphere application error - Hibernate
Websphere application error  i have received this following error [10/5/10 13:19:40:592 EDT] 00000043 SystemOut O java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl incompatible 

Hibernate Questions

Java Compilation error. Hibernate code problem. Struts first example - Hibernate
Java Compilation error. Hibernate code problem. Struts first example  Java Compilation error. Hibernate code problem. Struts first example 

Hibernate Questions

java compilation error - Hibernate
 

Hibernate Questions

hibernate code - Hibernate
hibernate code  sir, i have tried ur hibernate 3.0 firt example code, i have done as u have told in the tutorial like import all the related...,but when i run this it shows error i.e Exception in thread "main 

Hibernate Questions

Hibernate code - Hibernate
Hibernate code  firstExample code that you have given for hibernate... me any error or exception.console gives the same as u have shown in tutorial... to use the same primary key,it gives me the constraint violation error that means 

Hibernate Interview Questions

HIBERNATE
HIBERNATE   What is difference between Jdbc and Hibernate 

Hibernate Questions

hibernate
hibernate  what is hibernate listeners 

Hibernate Interview Questions

hibernate
hibernate  what is hibernate flow 

Hibernate Tutorial Example

Hibernate Criteria Aggregate Functions
Hibernate Criteria Aggregate Functions The Hibernate Criteria Aggregate...(). These functions are of Projections class. Following are the way to use these function in Hibernate Criteria. Criteria criteria = session.createCriteria 

Hibernate Questions

Struts-Hibernate-Integration - Hibernate
Struts-Hibernate-Integration  Hi, I was executing struts hibernate intgeration code the following error has occured. Anyone can give me... the following link: http://www.roseindia.net/struts/struts-hibernate/ Hope 

Hibernate Questions

hibernate Excetion - Hibernate
the same error that Hibernate: insert into login (uname, password) values...hibernate Excetion  The database returned no natively generated...://www.roseindia.net/hibernate/insert-data-database.shtml It will be helpful for you 

Hibernate Questions

Reg Hibernate - Hibernate
Reg Hibernate  Hi, iam using hibernate in myeclipse ide. I got an error. After doing reverse-engineering my table user, i opened HQL editor and written query as from user. I am getting this error 

Hibernate Questions

Reg Hibernate in Myeclipse - Hibernate
Reg Hibernate in Myeclipse  Hi, My table name is user and database name is search in mysql. I created the connection successfully and did... without any error. I opened HQL editor and executed from User My output 

Hibernate-Tutorials

Hibernate Criteria Query
Hibernate Criteria Query In this tutorial you will learn about the Hibernate Criteria Query. Hibernate provides an API for writing the dynamic query in an elegant way to execute . Except the use of HQL in Hibernate, Criteria query 

Java Beginners

hibernate
hibernate  how to uses optional column in hibernate 

Hibernate Questions

hibernate
hibernate  please give me the link where i can freely download hibernate software(with dependencies)   Learn hibernate, if you want to learn hibernate, please visit the following link: Hibernate Tutorials 

Hibernate Questions

Hibernate
Hibernate  hibernate delete query execution 

Hibernate Questions

hibernate
hibernate  what is hibernate why we use 

Hibernate Questions

Hibernate
Hibernate  how to use pagination concept in Hibernate 

Java Beginners

Reply to ur mail(Hibernate Error)
Reply to ur mail(Hibernate Error)  Hi! Im using Eclipse. Steps : 1. Downloaded the example code and library from rose india and extracted the content in a directory. 2. Downloaded file contains the Eclipse project. 3. Started 

Hibernate Questions

hibernate
hibernate   I want to learn how to use hibernate framework in web application . for storing database in our application 

Hibernate Questions

hibernate
hibernate   I want to learn how to use hibernate framework in web application . for storing database in our application 

Hibernate Tutorial Example

Complete Hibernate 3.0 and Hibernate 4 Tutorial
with an appropriate example.    Hibernate Projections Tutorials and Examples Hibernate Projections In this section, you will learn about the hibernate projections with an appropriate 

JSP Servlet Questions

jsp-Hibernate Error - JSP-Servlet
jsp-Hibernate Error  hi, my problem is, I designed an Interface where i am tring to listing the all rows of a table using Iterator and putted a link for deleting each row. I am deleteing row using row id of that record.it delete 

Hibernate Questions

hibernate
why hibernate?  why hibernate?   Hibernate: -Hibernate... library. It solves object-relational impedance mismatch problems. Hibernate makes the application development process easy Hibernate saves the development 

Java Beginners

hibernate
hibernate  pls give one simple example program for hibernate 

Hibernate Questions

Hibernate
Hibernate  Please tell me the difference between hibernate and jdbc 

Hibernate Questions

Hibernate
Hibernate  hello, how to run hibernate program in netbeans?please send me step by step instructions to run hibernate in netbeans 

Hibernate Questions

hibernate
hibernate  can any one one explain what is hibernate ?   Please visit the following link: Hibernate Tutorials 

Hibernate Interview Questions

Hibernate
Hibernate  How do you handle parent - child tables relationships in hibernate? How do you handle Detach state in hibernate 

Hibernate Questions

hibernate
hibernate  how to execute a sequence(in database) from Hibernate program or java program   Please visit the following link: Hibernate Tutorials 

Hibernate Questions

Persist a List Object in Hibernate - Hibernate
. http://www.roseindia.net/hibernate/projections/hibernate-projections.shtml...Persist a List Object in Hibernate   Hi All, I have a query on hibernate. How to persist a List object in Hibernate ? Can you give me 

Hibernate Questions

hibernate
hibernate  how to impot mysql database client jar file into eclipse for hibernate configuration   Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate/runninge-xample.shtml Thanks 

Hibernate Questions

Hibernate
Hibernate  hi sir i need hibernate complete tutorial for download   Hi Friend, Please visit the following link: Hibernate Tutorials Thanks 

Hibernate Questions

Hibernate - Hibernate
Hibernate Features  Hibernate features in eclipse 

Hibernate Questions

hibernate
hibernate  How to know how many columns changed in a table when we are using hibernate 

Hibernate Questions

hibernate
hibernate  hi what are the necessary jar files that we need to set in the classpath to execute a hibernate application 

Hibernate Interview Questions

HIBERNATE
HIBERNATE  How u connects database using hibernate 3.0? Where you have written the database configuration details 

Hibernate Questions

java - Hibernate
........................................................... The aboue error is got when i downloaded the code and run using Hibernate and annotation..plse help me...  Hi friend, Read for more information. http://www.roseindia.net/hibernate 

Hibernate Tutorial Example

hibernate criteria Max Min Average Result Example
hibernate criteria Max Min Average Result Example In this Example, We will discuss about hibernate criteria query, The class... of Projection. In this example we create a criteria instance and implement 

Hibernate Questions

hibernate
hibernate  Is there any other way to call procedure in hibernate other than named query????? if we are using session object to get the connection then why hibernate we can directly call by using a simple java class??????? please 

Hibernate Questions

hibernate
hibernate  when we using schemaExport in hibernate every time it drops the existing table and create new table ,if table contain dependent table then is it drop 

Hibernate Questions

java.lang.NoClassDefFoundError - Hibernate
java.lang.NoClassDefFoundError  Hi, I am new to hibernate. while running the hibernate application i m getting the following error. Exception...) could you please help me out to resolve the error. Thanks and Regards, Vishal 

Hibernate Questions

Hibernate
Hibernate  Hi i have 2 doubbts regarding Hibernate ,.. 1)Can we rename hibernate.cfg.xml? 2? can we use multiple mapping resource in hibernate.cf.xml file ? pls let me know soon 

Hibernate Questions

Hibernate
Hibernate  Can we write more than one hibernate.cfg.xml file... ? if so how can we call and use it.? can we connect to more than one DataBase from a single Hibernate program 

Hibernate Questions

hibernate - Hibernate
hibernate program shareware  hibernate program shareware example 

Hibernate Questions

Hibernate - Hibernate
Hibernate sessionfactory configuration  What is the process of hibernate sessionfactory configuration 

Hibernate Questions

org.hibernate.MappingException: Error reading resource: contact.hbm.xml - Hibernate
org.hibernate.MappingException: Error reading resource: contact.hbm.xml  Can you tell the solution for this error Thank you very much Keen!!  Hi friend,<?xml version="1.0"?><!DOCTYPE hibernate-mapping 

Hibernate Questions

Using sum() in hibernate criteria.
Using sum() in hibernate criteria.  How to calculate sum() in hibernate criteria by using projection?   You can calculate sum of any numeric value in hibernate criteria by using projection. Projection is an interface 

Hibernate Questions

hibernate
;Hi Friend, Please visit the following link: http://www.roseindia.net/hibernate 

Advertisements Advertisements
 

 

 

DMCA.com