1. Java type casting for hibernate stackoverflow.comYes, I know we can upcast or downcast in Java. But the type of the instance doesn't really seems to be change and it's giving me a problem. E.g. class Foo{ int a, ... |
2. Casting to specific class in HQL stackoverflow.comMy situation is like this.. (note: for those who work with JBPM might already familiar with following data structures and HB mapping) Class LongInstance extends from VariableInstance, with the mapping for field ... |
3. JPA "cannot be cast to java.sql.Blob" stackoverflow.comI'm using JPA2 with hibernate 3.6.1. and a Derby database and I used the following annotation for a blob:
Hibernate creates the correct blob column but if I try ... |
4. Using cast in Hibernate Criteria? stackoverflow.comI have a MySQL column as string and I have it like " |
5. cannot be cast to [Ljava.lang.Object stackoverflow.com
|
6. How can I cast from one class to another class in hibernate stackoverflow.comSuppose there are three classes: One is:
|
7. org.hibernate.dialect.MySQLDialect cannot be cast to org.hibernate.dialect.Diale ct coderanch.comI an new to Hibernate. I am developing a web application using hibernate. When i am running my application as a standalone its running fine. But when i am deploying it on JBoss 5 and running it i am getting the following exception Initial SessionFactory creation failed.org.hibernate.HibernateException: Could not instantiate dialect class 13:03:28,648 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception ... |
8. org.hibernate.hql.ast.HqlToken cannot be cast to antlr.Token liferay.comHi all, i've developed a portlet that use hibernate 3.5 and Spring 3.0, i'm using Liferay 5.2.3; when i execute a particular hql query String hql = "from Squadra as squadra where squadra.id not in (select gs.idSquadra from GironeSquadra as gs where gs.idGirone = :idGirone)"; i get the followin error java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken cannot be cast to antlr.Token at ... |
9. Hql "Cast As" problem forum.hibernate.orgI have a problem with a query that matchs a blob column with a String parameter using the a like sentence in db2: LOWER(CAST(SUBSTR(detail,1,32000) AS string)) LIKE LOWER(:detail) I need to do the cast because if I use "detail LIKE BLOB(:detail)" insted, this query is case sensitive and i need a case insensitive query. This is the xml associated with the ... |
10. Data cast with criterias forum.hibernate.org |
11. $Proxy13 cannot be cast to forum.hibernate.orgNewbie Joined: Wed Mar 11, 2009 7:15 am Posts: 12 When I use my BO (buissness object) there is an exception: Code: $Proxy13 cannot be cast to pl.diagno.bo.impl.PersonBOImpl This is quite strange because I use that configuration in the another project and it works fine. My applicationContext.xml Code: |
13. SqlNode cannot be cast to ResolvableNode forum.hibernate.org |
14. HQLToken cannot be cast to AntrlToken forum.hibernate.orgNewbie Joined: Fri Feb 04, 2011 8:34 pm Posts: 10 Hello, I want to deploy an application (Jaxws with Ejb3) a .war file to JBOSS 6.0.0Final. But I got this error exception when the deployment is about to finish: Code: 13:16:02,847 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://ws.houseware.com.au/}userwsService from class au.com.houseware.ws.userws 13:16:06,743 INFO [org.apache.cxf.endpoint.ServerImpl] Setting the server's publish address to be ... |
15. casting values as "time" in hql forum.hibernate.orgWe have an HQL query that we are trying to run which utilizes a cast operation in the where clause. Effectively "cast(x as time)" where x is an int column in a postgres database. For all other cast types (long, date, whatever) this code seems to translate just fine, but for "time" it always prepends the column name with some alias ... |
16. sql cast as - using timestamp as a date forum.hibernate.orgI have an application involving booking people into shift work. The shifts have a date, start time, and end time. I store this information in two timstamps start and end. Timstamps so that I can store date and time together in one field hence easily accomodating shifts that span midnight, and leaving comaprison and time based arithemetic working correctly for reporting ... |
17. casting to PersistentCollection forum.hibernate.orgIt looks to me like the the collection snapshot that can be obtained by casting a collection to PersistentCollection is taken every time the session is flushed and is a record of the state of the collection right before it was updated. I need the record of the state of the collection before it was updated, so I'm wondering if a) ... |
18. Type casts in the HQL forum.hibernate.orgIf that's the case... you should be mapping this as a |
19. BatcherImpl:241 - preparing statement throws class cast forum.hibernate.orgAuthor Message rtayek Post subject: BatcherImpl:241 - preparing statement throws class cast Posted: Sun Mar 14, 2004 5:46 am Regular Joined: Sat Feb 21, 2004 8:54 pm Posts: 60 Location: Lakewood, California hi, reversed a new db and can't seem to do a get. i get: 01:23:01,343 DEBUG BatcherImpl:196 - about to open: 0 open PreparedStatements, 0 open ResultSets ... |
20. Cast problem forum.hibernate.orgI can use the methods Session.save() and Session.load() without problems, when i save, the table is updated, when use the load method i can convert the objetc in this way (MyClass) Session.load (MyClass, objid) and everything is allright. When i use query.list() to retrive all records, this list is created with the correct size (equal to the numbers of records), but ... |
21. Casting a CGLIB proxied class forum.hibernate.orgI recently went through a porting excercise where I was converting a huge domain mode (250+ classes) from using ObjectStore to Hibernate3. This presented some interesting challenges as this model had evolved over 5 years and was in its current state very object oriented. I probably touched most mapping aspect/challenges possible and learned alot about hibernate and ORM/caching/TX in general. One ... |
22. how to implement oracle funtion to_number via cast forum.hibernate.orgI too have found the same thing, where it appears that the cast function hasn't been implemented, even though in the documentation it indicates that it should be working. This is quite frustrating, especially when trying to cast integers to floats in order to achieve a non-rounded figure when averaging a column. Any idea when this is to be implemented? Or ... |
23. Cast- No data type for node:org.hibernate.hql.ast.MethodNode forum.hibernate.orgI am doing a sql where I am trying to perform a cast of a boolean to an integer and I am getting a weird error. Thanks for any help. Here is my hql:(this is a simplified version i am testing with doesn't accomplish anything) Quote: select treatmentCourse.id, cast(todos.done as integer) from TreatmentCourse treatmentCourse left outer join treatmentCourse.todos as todos group ... |
24. Suggestion for automating proxy casting forum.hibernate.orgI am primarily concerned with casting that occurs within the objects that Hibernate persists. If Hibernate were to fix the casting within those classes, it would be a huge step forward. Also, I believe in the above case you could do the bytecode manipulation at runtime (as opposed to build time), the same time you are building the proxy classes. What ... |
25. Equals and casting problem with proxy forum.hibernate.orgHibernate version: 3.2.1 Hello, Here is an excerpt of my equal method: Code: public boolean equals(final Object obj) { if (this == obj) { return true; } ... |
26. Failed cast of ValidateEventListener forum.hibernate.orgAuthor Message robmcau Post subject: Failed cast of ValidateEventListener Posted: Thu Mar 29, 2007 9:49 pm Newbie Joined: Thu Mar 29, 2007 3:58 am Posts: 5 I've solved this, but I find it so freaky that I thought I'd post it so others don't fall into the same trap, or even just in case it could be fixed. Quick ... |
27. StringType cannot be cast to VersionType forum.hibernate.orgHello, When I make the following call: SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); I get the following exception: Initial SessionFactory creation failed.java.lang.ClassCastException: org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType Exception in thread "main" java.lang.ExceptionInInitializerError at util.HibernateUtil. |
28. cast(stringvalue AS decimal) forum.hibernate.org |
29. problem with casting forum.hibernate.orgProductsManager: Code: public List sucheProdukte (String name) { List res = new ArrayList(); Session session = HibernateUtil.getSessionFactory().openSession(); Transaction tx = session.beginTransaction(); ... |
30. String litera in indices() with MYSQL needds cast forum.hibernate.orgHibernate version: latest (not sure) Mapping documents: Code: |
31. Informix casting incorrectly? forum.hibernate.orgWhen I run an Informix SQL query through Hibernate, it seems to be mis-casting all char(n) fields as Character and not String. How can I tell Hibernate to cast all fields defined as char(n) as a String? This isn't particularly helpful. So the string "Hello World" if stored in a char(20) fields becomes "H". Yes, I know I can correct this ... |