Spring Annotation-Based vs XML-Based Transaction Definition Precedence
I couldn’t find a definitive answer to this in the docs, and although there seems to be a logical answer, one can’t be sure. The scenario is this – youContinue reading
I couldn’t find a definitive answer to this in the docs, and although there seems to be a logical answer, one can’t be sure. The scenario is this – youContinue reading
It is often argued whether tests that need a database should be called “unit tests”. Most often the answer is “No, these are database integration tests”. My opinion is –Continue reading
JAXB: [javax.xml.bind.UnmarshalException: unexpected element (uri:”http://mynamespace/”, local:”entity”). Expected elements are ({}entity)] The following exception broadly means that an element encountered during unmarshallization isn’t found in the JAXB Context. The details, howeverContinue reading
Today I got this exception. Pretty obvious? Well, no. The named parameter IS there. (Sidenote: this exception generally means that when trying to call setParameter(..) with a certain param name,Continue reading
The title explains the preconditions: spring beans (conforming to an interface), using @Transactional (or <tx:advice>) custom exception is thrown from within the service methods There is a little trick –Continue reading
The exact name for this tests is disputable. Whether it should be “database integration testing” or “unit testing”. But anyway, it is about this: Many applications’ service layer relies heavilyContinue reading
If you want to have a deep @Embeddable Hibernate entity hierarchy with Oracle – you are not welcome. Oracle has a genious unconfigurable (at least after a lot of search)Continue reading
In a previous post I described how to sign data with only javascript. Now, this data should be used on the server side for something. Here is how a JavaContinue reading
Important-er updates: Nothing below works anymore. Check this article. Important updates: this code won’t reliably work anymore. If you don’t need smartcard support, use the experimental web crypto API. IfContinue reading