Hibernate

Working with Hibernate and DB2 9, if you have a byte[] member in your entity which is supposed to be mapped to a BLOB column, you'll probably get:

ERROR [org.hibernate.util.JDBCExceptionReporter] - <DB2 SQL Error: SQLCODE=-301, SQLSTATE=07006, SQLERRMC=2, DRIVER=3.61.75>
ERROR [org.hibernate.event.def.AbstractFlushingEventListener] - <Could not synchronize database state with session>
org.hibernate.exception.SQLGrammarException: could not insert...

Which in general means wrong data type!

After throwing lots of hooks into the sea of Google & IBM, I came up with this one - thanks to Steve for his excellent fish

www.badlildog.com/words/

avim 08/02/2011 - 11:47

Hi

anyone has experience with writing and installing a transaction interceptor with jboss AOP?

we have an EJB3 application running on jboss 4.2 and we need to do something before and after a transaction.

 

Thank you for any help.

 

 

shalom 01/12/2009 - 11:52

Kauklahti is an open source tool aiming to keep ORM simple. It integrates with Spring JdbcTemplate and works like BeanPropertyRowMapper. But it also supports table joining and full CRUD generation.

itaip 28/10/2009 - 08:54

I found two comprehensive references:

 

https://www.hibernate.org/318.html

 

http://java.dzone.com/articles/using-a-hibernate-interceptor-

 

has anyone suceesfully attempted to implement any of these?

shlomo 27/07/2009 - 12:19
Hi we have a User entity with a password field, and two use cases: 1) update the user entity but not the password field, the entity is sent from the UI and has null in the password field. 2) update the user entity including the password,again the entity is sent from the UI.   in both use cases it is assumed that the entity is not attached to the hibernate session.   so using just saveOrUpdate in the first use case will set null to the password field in the DB(I'm ignoring the DB constraints for now), and my understanding is that hibernate merge is not the solution. my question is how to implement it without having to do two round trips to the DB and without having to write HQL statements.   my thoughts where to use the Seppuku pattern: have two entity classes mapped to the same table User UserWP extends User
shalom 04/06/2009 - 01:28

Has anyone had experience with this database (Formerly known as Interbase)?

More specifically, how does it perform with type 4 JDBC driver? How does it scale with TB's of information?

Anyone used the native type 3 JDBC driver?

Anyone had problems with HIBERNATE?

Thanks

 

shlomo 04/05/2009 - 19:34

This video was taken on the 10th Jbug meeting feturing A review of the place of search in modern applications and the different types of solutions offered by the open-source market. Introduction to the concepts behind  the full text search and the paradigm mismatch with Java's world of Objects.

adi 11/01/2009 - 20:37

While consulting at one of our clients, I was asked to configure a Spring environment serving a Flex application with multiple Session Factories needed for accessing the old and new generations of the application (due to a heavy migration process). In order to work with more than one session factories in our application contex, some modifications were needed:

 

zvika 21/09/2010 - 17:38

The following blog post describes problems that can arise with naive user-type implementation, and builds up base classes that allow you to focus, as much as possible, on only writing code relevant to the actual target type.

yanai 16/11/2009 - 20:54
Syndicate content