I'm reading Java Persistence with Hibernate and I'm in doubt about how Hibernate work with synchronized collections.
This quote is from the book:
Quote:
Hibernate only wraps the collection object you've already initialized on declaration of the field (or sometimes replaces it, if it's not the right one)
So, I've this code:
Code:
private List itens = Collections.synchronizedList(new ArrayList())
Does hibernate replace the synchronized list? As in the book the right implementation of List is ArrayList.
If yes this is a bit annoying because my object will have to deal with de concurrency without the help of synchronized collections.