Hi all!
I'm having this error while quering some data in my database:
Code:
Hibernate: select hotelreser0_.code as x0_0_ from HotelReservation hotelreser0_ inner join Reservation hotelreser0__1_ on hotelreser0_.code=hotelreser0__1_.code where ((hotelreser0__1_.reportCode<>0 ))and((hotelreser0__1_.controlReservation=es.parsec.parsys.reservation.HotelReservation@1eae719 )) order by hotelreser0__1_.creationDate descending
2242547 [http-8080-Processor25] WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 117, SQLState: 01000
2242563 [http-8080-Processor25] ERROR net.sf.hibernate.util.JDBCExceptionReporter - The number name 'es.parsec.parsys.reservation' contains more than the maximum number of prefixes. The maximum is 3.
2242578 [http-8080-Processor25] WARN net.sf.hibernate.util.JDBCExceptionReporter - SQL Error: 117, SQLState: 01000
2242594 [http-8080-Processor25] ERROR net.sf.hibernate.util.JDBCExceptionReporter - The number name 'es.parsec.parsys.reservation' contains more than the maximum number of prefixes. The maximum is 3.
2242594 [http-8080-Processor25] ERROR net.sf.hibernate.util.JDBCExceptionReporter - Could not execute query
java.sql.SQLException: The number name 'es.parsec.parsys.reservation' contains more than the maximum number of prefixes. The maximum is 3.
Here is what I'm trying to do:
Code:
Iterator it = HibernateSession.currentSession().iterate("from HotelReservation as hr where (hr.reportCode = 0) and (hr.isReplacedByReservation is null) and (hr.confirmationStatus not like 'RQ')");
while(it.hasNext())
{
HotelReservation res = (HotelReservation)it.next();
Iterator auxIt = HibernateSession.currentSession().iterate("from HotelReservation as hra where (hra.reportCode <> 0) and (hra.controlReservation = " + res.getControlReservation() + ") order by hra.creationDate descending");
.
.
.
.
.
}
Is in the second iterate() where I get the error....
does anybody knows why do I get this error, or what does it means?
Thank you very much in advance for any response!