See JavaPersistenceApi.