JPA Storage Test

Cantor, Scott cantor.2 at osu.edu
Wed Feb 11 11:33:09 EST 2015


On 2/11/15, 3:33 PM, "Daniel Fisher" <dfisher at vt.edu> wrote:



>Tom,
>can you run the latest JPAStorageServiceTest against MySQL?
>I still have issues with Postgres passing the strings() test, but I'm 
>wondering how MySQL fares.

Concurrency-wise, I eyeballed the changes and they look good to me 
(outside of actually knowing for sure how it behaves on various databases 
in practice). The lock flag Javadoc all reads correctly to me (the key 
point is where it talks about OPTIMISTIC preventing transactions from 
committing by throwing errors vs. PESSIMISTIC preventing something from 
happening at all).

For Oracle, that would have to translate into the non-standard "select for 
update" syntax. But maybe that's what Hibernate does.

-- Scott



More information about the dev mailing list