-
1. Re: problem generics and pretty printer
axelgrrr Mar 8, 2007 6:38 AM (in response to axelgrrr)ok also tried now with the 4.2.0.CR1 AS.
same situation as far as i can see; the pretty printer is throwing a
exception causing a rollback.
this certainly is a bug; should I file it to JIRA?
with a non-generic version of the class (using a String field instead):
2007-03-08 12:28:19,546 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
2007-03-08 12:28:19,546 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2007-03-08 12:28:19,546 DEBUG [org.hibernate.pretty.Printer] listing entities:
2007-03-08 12:28:19,546 DEBUG [org.hibernate.pretty.Printer] application.server.TicketDataImpl_String{ticketId=component[id_i]{id_i=89547}, status=1, ticketPayload=testATestSpecificTicket}
And here it fails with the generic (P extends Serializable) class:
2007-03-08 12:28:19,593 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
2007-03-08 12:28:19,593 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2007-03-08 12:28:19,593 DEBUG [org.hibernate.pretty.Printer] listing entities:
2007-03-08 12:28:19,593 DEBUG [org.hibernate.ejb.AbstractEntityManagerImpl] mark transaction for rollback