Archive for the ‘hibernate’ Category

joined-subclass with discriminator-value?

Saturday, July 22nd, 2006

So I am trying to use Hibernate to map a class hierarchy with table-per-hierarchy mixed with table-per-subclass. more…

persist() vs. save()

Tuesday, February 14th, 2006

Hibernate 3 added a new persist() method to the Session interface. It came from the EJB3 Entity Manager spec. In case you are also wondering whether to migrate to it or just stick to the good old save() method to insert a new object, here’s what I found out:
A discussion on Hibernate Forum
A JIRA ticket

The Circular Bean Reference Problem in Spring 2.0’s Arbitrary Domain Object Wiring

Monday, February 6th, 2006

Spring 2.0 has an exciting new feature that, with AspectJ’s powerful AOP support, allows arbitrary domain objects to be injected with dependencies at the time of creation, even when the domain object is not created by Spring. This feature helps developers avoiding the “Anemic Domain Model” because now domain objects can have references to services or even DAO’s, instead of just some other domain objects. more…

Call Me Pedantic - What Exactly IS Scalability?

Monday, January 16th, 2006

This is mostly triggered by Diego Parrilla’s post Spring is not designed for scalability, in which he goes, “…Basically you have two options if you want to scale with pure web applications…”, and then gives two options to scale, both of which involves state replicating clustering schemes. There, Diego, you got on my pedantic nerve. :-) I can’t help but wondering this question - what, exactly is Scalability? more…

Property Or Field Access?

Sunday, May 15th, 2005

Hibernate supports access objects attributes through Java Bean accessor methods or direct field access through reflection. You can also supply your own PropertyAccessor implementation, but in this post I’ll leave that aside and focus on comparing the first two approaches. more…