Skip to main content

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

Ahhh.... Why I just stared for days at Chapter 9 and never thought to look at Chapter 8, I have no idea. And I also have a mental block preventing me from looking upon EJB-QL - I was just looking at the various APIs, which seem to take the Class, not the Entity name, for a parameter. Oh well.... Thanks for setting me straight.


-----Original Message-----
>From Trân Lê <TRAN.LE@xxxxxxxxxx>
Sent Mon 1/30/2006 11:46 PM
To dali-dev@xxxxxxxxxxx
Subject 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

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



Back to the top