Sunday, 31 January 2010

Entity class requirement

•Must be annotated with @Entity
•Must have public or protected no-arg constructor.
•Class must not be declared final. No methods or persistent instance variables must be declared final.
•If an entity is passed by value as detached object, such as through remote session bean interface, then the class must implement java.io.Serailizable
•Entity may extend both entity and non-entity classes, and non-entity classes may extend entity classes
•Persistent instance variable CANNOT be public (can be either private, protected or package)

3 comments:

  1. hi, do you know where can i find some java certificate tests? Thanks a lot

    ReplyDelete
  2. I've taken the Java exam for advanced developers, it was very difucult, and took me about ten hours, but now i have a job, so i guess it worth

    ReplyDelete
  3. look in Sun site, there you can find information about examans, and where you can take them.
    Good luck

    ReplyDelete