persistence@glassfish.java.net

Transaction isolation level

From: Krzysztof Adamczyk <k.adamczyk_at_merge.com.pl>
Date: Mon, 24 Sep 2007 15:26:02 +0200

Hi,

Is it possible to set the transaction isolation level for a single method?
What I'm going to do is to generate the invoice number that must be unique.
I don't use sequences, because the number is generated for month and company department,
so I would have a dynamic number of sequences.
My idea is to have a method (generating invoice numbers) with the highest isolation level.
Is this approach ok?

Thanks in advance.
Chris