One of the most commonly used features in Java is Exceptions. I have always used it- throwing, catching and sometimes crashing code with them. I recently had a requirement where I needed to convert a stack trace to a String.
Search This Blog
Sunday, 30 June 2013
Friday, 28 June 2013
Result Transformers
In the previous post we saw the need for ResultTransformer, how using the value of Criteria.DISTINCT_ROOT_ENTITY filters duplicate records.
Monday, 24 June 2013
Inheritance in xsd
In the last post we were able to map elements which included attributes. An alternative way of representing elements is to nest them. Consider the below schema definition:
Wednesday, 19 June 2013
Why the need for ResultTransformers ?
Consider the below criteria example which simply loads the Entity records from the database with ids less than 6.
Monday, 17 June 2013
JPA's GenerationType.TABLE
In the previous posts we saw the identifier generation strategies supported by JPA and their equivalent ones in Hibernate. There is however one in JPA - The TABLE GenerationType that is not there in Hibernate API. I decided to look at the same.
Subscribe to:
Posts (Atom)