Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [dali-dev] Entity name

Brian,
The "name" element is still defined in December 21st spec.
Chapter 8.1 p.153

The name annotation element defaults to the unqualified name of the entity class. This name is used to refer to the entity in queries. The name must not be a reserved literal in EJB QL.

@Target(TYPE) @Retention(RUNTIME)
public @interface Entity {
    String name() default "";
}

-----Original Message-----
>From Brian Vosburgh <BRIAN.VOSBURGH@xxxxxxxxxx>
Sent Mon 1/30/2006 9:12 PM
To dali-dev@xxxxxxxxxxx
Subject [dali-dev] Entity name

Was the Entity annotation's 'name' element removed? I can't see that it's mentioned or used anywhere in the spec anymore, but it's still in the ejb30-persistence.jar I'm using. (Not that I'm claiming that the jar is up-to-date....) It appears that you must use the Entity's class now?

Brian


_______________________________________________
dali-dev mailing list
dali-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dali-dev



Back to the top