1. ClassCastException when usign HQL stackoverflow.comSee the following mapping
When i call the following query
And i proccess the ... |
2. java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.Object stackoverflow.comIm running following query it will display error message. How to solve this error.
|
3. Hibernate -> ArrayList cannot be cast to Set stackoverflow.comI have a Java EE application and I use Hibernate. The domain objects, I changed the List / ArrayList to Set / HashSet, because it is better to use Sets. But in ... |
4. Hibernate/HQL/JPQL: what's wrong with a CASE WHEN ... THEN NULL ELSE ... END (ClassCastException)? stackoverflow.comI have the following JPQL/HQL snippet in a SELECT
|
5. java.lang.ClassCastException: java.lang.Integer cannot be cast stackoverflow.comWhen i click on login, it checks the DB if there is a value matching then i get this error, else it does print me null.
|
6. HQL IN operator, Array of Enums ClassCastException stackoverflow.comHere is my stripped down class and enum.
if I run
|
7. java.lang.ClassCastException: org.hibernate.hql.ast.tree.SqlNode cannot be cast to org.hibernate.hql.ast.tree.FromReferenceNode stackoverflow.comIm trying to update a record with a HQL query but im getting a cast exception. If anyone could help me out i would really appreciate it. I have checked the internet for ... |
8. ClassCastException HashMap not a PersistentCollection forum.hibernate.orgHi, I'm trying to persist a map but a ClassCastException occurs when trying to count the items (select count suing a native query). I use the 3.3.0.SP1 release of hibernate core. The mapping file: |
9. ClassCastException with Enumerated CollectionOfElements forum.hibernate.orgI have the following mapping @Entity @Table(name = "av_contribution") public class Contribution { ..... @CollectionOfElements(targetElement = BoardKind.class) @Enumerated(EnumType.STRING) @JoinTable(name = "av_contrib_boardkind", joinColumns = @JoinColumn(name = "cid")) Set |
10. ClassCastException: QueryKey cannot be cast to CacheKey forum.hibernate.orgI get a ClassCastException when I try to do the following: Map cacheEntries = sessionFactory.getStatistics().getSecondLevelCacheStatistics(regionName).getEntries(); Any pointers to what could be wrong here? I am using: Java 1.6 Hibernate 3.5.3 GWT 2.0 I get the same exception when I use EhCache as well. However, I was expecting Hashtable cache to work. My second level cache config is |
17. java.lang.ClassCastException: java.lang.String while saving forum.hibernate.orgHi , I am getting ClassCastException whenever i try to save one of my Object. I have checked my Database tables , Classes Definition as well as mapping definition all have similar "types" for all the properties/columns still it is giving this exception . I checked the log created at server it is also generating the right queries and binding with ... |
18. ClassCastException: HqlToken cannot be cast to antlr.Token forum.hibernate.orgHi All, I am getting ClassCastException. Here are some details. We have two applications. Both applications using the hibernate and same version and jars added in their jar libs folder. The main application loads the 2nd application using java class loader and loads all the jars inside the .jar file lib foler. Once both application loaded and database schema created by ... |