my dog learned polymorphism
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Final class - and Persistence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Final class - and Persistence" Watch "Final class - and Persistence" New topic

Final class - and Persistence

Binu K Idicula
Ranch Hand

Joined: Jul 11, 2002
Posts: 99
Hi All,
With Toplink, I am able to persist a final class. Is this correct, or is it a deviation?
Binu K Idicula
SCJP5.0, SCJD5.0
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Entity classes must not be final.

[My Blog]
All roads lead to JavaRanch
Antonio Tercero
Ranch Hand

Joined: Jun 05, 2008
Posts: 110
If you want your application to be portable, follow the rules described in the spec.

Binu K Idicula
Ranch Hand

Joined: Jul 11, 2002
Posts: 99
Hi All,
Thanks for answers. Can anyone suggest me jpa provider which has the 100% spec implementation for trying out tests?
Anyway, I will test with Spec in theory.
Binu K Idicula
E Lievaart

Joined: Jul 06, 2008
Posts: 28
I dont think you will be able to find anything like that.
Even reference implementations usually have a few off-specs
Michael Wiezik
Ranch Hand

Joined: Mar 19, 2004
Posts: 70
Does anyone know / use any other JPA implementation than Hibernate or TopLink?

SCJP 1.4 - 88%
SCBCD 5.0 - 90%
SCEA - 81%
Sergio Tridente
Ranch Hand

Joined: Mar 22, 2007
Posts: 329

There's Apache's OpenJPA. I've never used it, though.

SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
I agree. Here's the link:
subject: Final class - and Persistence
It's not a secret anymore!