persistence@glassfish.java.net

The entity class must be a top-level class.

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Tue, 14 Feb 2006 19:39:06 +0530

Hi Mike,

section 2.1 says:
/The entity class must be a top-level class./

Going by this rule, the following example is wrong.
public class Foo {
  @Entity public static class Bar {
  }
}

Just curious as to why a public static nested class can't be an enity.

Thanks,
Sahoo