I'm SO sorry. I made the hugest confusion changing things on my bean and forgeting them on my form. Now that I got this clear, I see that your great tip almost solved my problem.
Apparently now it accepts my getters and setters well, but maybe my values aren't being correctly getted and setted.
That's what I got in my log now:
Code:
2005-08-31 14:49:16,647 DEBUG event.def.AbstractSaveEventListener -> saving [auge.bean.Cor#15]
2005-08-31 14:49:16,744 DEBUG event.def.AbstractFlushingEventListener -> flushing session
2005-08-31 14:49:16,745 DEBUG event.def.AbstractFlushingEventListener -> processing flush-time cascades
2005-08-31 14:49:16,748 DEBUG event.def.AbstractFlushingEventListener -> dirty checking collections
2005-08-31 14:49:16,748 DEBUG event.def.AbstractFlushingEventListener -> Flushing entities and processing referenced collections
2005-08-31 14:49:16,755 DEBUG event.def.AbstractFlushingEventListener -> Processing unreferenced collections
2005-08-31 14:49:16,756 DEBUG event.def.AbstractFlushingEventListener -> Scheduling collection removes/(re)creates/updates
2005-08-31 14:49:16,756 DEBUG event.def.AbstractFlushingEventListener -> Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
2005-08-31 14:49:16,756 DEBUG event.def.AbstractFlushingEventListener -> Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2005-08-31 14:49:16,756 DEBUG hibernate.pretty.Printer -> listing entities:
2005-08-31 14:49:16,757 DEBUG hibernate.pretty.Printer -> auge.bean.Cor{nome=15, cor=15, descricao=[B@1c39412}
2005-08-31 14:49:16,757 DEBUG event.def.AbstractFlushingEventListener -> executing flush
2005-08-31 14:49:16,760 DEBUG persister.entity.BasicEntityPersister -> Inserting entity: [auge.bean.Cor#15]
2005-08-31 14:49:16,760 DEBUG hibernate.jdbc.AbstractBatcher -> about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
2005-08-31 14:49:16,760 DEBUG org.hibernate.SQL -> insert into CORES (nome, descricao, cor) values (?, ?, ?)
Hibernate: insert into CORES (nome, descricao, cor) values (?, ?, ?)
2005-08-31 14:49:16,761 DEBUG hibernate.jdbc.AbstractBatcher -> preparing statement
2005-08-31 14:49:16,767 DEBUG hibernate.jdbc.ConnectionManager -> running Session.finalize()
2005-08-31 14:49:16,788 DEBUG persister.entity.BasicEntityPersister -> Dehydrating entity: [auge.bean.Cor#15]
2005-08-31 14:49:16,788 DEBUG hibernate.type.StringType -> binding '15' to parameter: 1
2005-08-31 14:49:16,811 DEBUG hibernate.impl.SessionImpl -> closing session
2005-08-31 14:49:16,811 DEBUG hibernate.jdbc.ConnectionManager -> closing JDBC connection [ (open PreparedStatements: 1, globally: 1) (open ResultSets: 0, globally: 0)]
2005-08-31 14:49:16,813 DEBUG struts.tiles.TilesRequestProcessor -> processForwardConfig(/pages/erro.jsp, false)
As you see, it doesn't clearly shows me any errors, but an error happens. The insert doesn't work.
My column type is BLOB SUBTYPE 0. The property is now mapped the way you said.
Thanks very much, you're really helping.