java/j2ee tips and blueprints
java/j2ee tips and blueprints
It is a very sad thing that nowadays
there is so little useless information.
Oscar Wilde
Annotations have been more successful than XML
Annotations came to JDK with JDK5 (2004) since then they evaluated and are accepted so widely and even became more powerful and useful than XML in just 4 years.
While you are developing a project with java at any scale you’ll need a very large number of XML files defined in very different API’s and DTD/XSDs. Which makes configuration very complex.
eg:struts.xml,tiles.xml,validation.xml,hibernate.cfg.xml,spring-context.xml,web.xml,and so on
Although it is easy to read and modify there are lots files
Now with annotations:
more...
hibernate cache injection: missing…
currently hibernate version is 3.2.5 and there is still something basic missing: cache injection.
more...
hibernate native id generator bug 3.2.4-ga
hibenate native id generator for mysql not working just update to 3.2.5
Caused by: java.sql.SQLException: No value specified for parameter 11 at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2212) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1724) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1596) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101) at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73) at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
more...
You can know the name of a bird in all the languages of the world, but when you're finished, you'll know absolutely nothing whatever about the bird... So let's look at the bird and see what it's doing -- that's what counts. I learned very early the difference between knowing the name of something and knowing something.
Richard Feynman