Hibernate

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

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

 NHibernate 2.1.0 released.

 

Among numerous bug fixes, it includes an important feature: GroupBy projection.

 

Projections are similar to the expressions in SELECT statement of SQL. So if we have the following statement:

 

SELECT AVERAGE(SALARY) FROM EMPLOYEES GROUP BY JOB_TITLE

 

We will use a projection to calculate an average salary for every job title.

 

The framework can be downloaded from http://sourceforge.net/projects/nhibernate/files/NHibernate/NHibernate-2.0.1.GA-bin.zip/download

andrew 19/07/2009 - 22:46

And a bunch of other excellent posts.  Worth reading  for anyone dealing with Hibernate or JPA.

 

http://blog.xebia.com/2009/04/09/jpa-implementation-patterns-removing-en...

 

shlomo 22/06/2009 - 09:06

Hi

we have a spring/hibernate -> swing application
the communication is soap with axis, the hibernate entities are mapped to soap objects and travel from the server to the client and back.

we have some entities that we don't want to select all the fields every time, in some cases we need only partial data of the entity.
for example a Profile entity with id,name ,description and many other primitive and non primitive fields,
the UI people do not want to deal with a Profile object when they need only part of the data, they want for example a ProfileIdentifier object that has the profile id,name and description.

ProfileIdentifier
    id
    name
    desc

so we can do it with inheritance
class Profile extends ProfileIdentifier

or with a ProfileIdentifier component or value type,

shalom 08/06/2009 - 15:31
Syndicate content