Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Interface (rather than class) as @Entity ?
Interface (rather than class) as @Entity ? [message #434429] Mon, 07 May 2007 15:29 Go to next message
Mike Yawn is currently offline Mike YawnFriend
Messages: 50
Registered: July 2009
Member
Is it legal in JPA to annotate an interface, rather than a class, as the
@Entity?

Will Dali support this
- if I annotate an interface, can Dali use that to generate DDL?
- Can Dali generate an interface for me from a table definition?

Thanks,
Mike
Re: Interface (rather than class) as @Entity ? [message #434434 is a reply to message #434429] Mon, 07 May 2007 21:39 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Hi Mike,

JPA 1.0 does not support Interfaces as an Entity, and as a result Dali
does not support this in any way.

From the spec: "The entity class must be a top-level class. An enum or
interface should not be designated as an entity."

Neil

Mike Yawn wrote:

> Is it legal in JPA to annotate an interface, rather than a class, as the
> @Entity?

> Will Dali support this
> - if I annotate an interface, can Dali use that to generate DDL?
> - Can Dali generate an interface for me from a table definition?

> Thanks,
> Mike
Re: Interface (rather than class) as @Entity ? [message #593770 is a reply to message #434429] Mon, 07 May 2007 21:39 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
Hi Mike,

JPA 1.0 does not support Interfaces as an Entity, and as a result Dali
does not support this in any way.

From the spec: "The entity class must be a top-level class. An enum or
interface should not be designated as an entity."

Neil

Mike Yawn wrote:

> Is it legal in JPA to annotate an interface, rather than a class, as the
> @Entity?

> Will Dali support this
> - if I annotate an interface, can Dali use that to generate DDL?
> - Can Dali generate an interface for me from a table definition?

> Thanks,
> Mike
Previous Topic:Dali tutorial
Next Topic:JPA settings
Goto Forum:
  


Current Time: Tue Apr 23 13:04:46 GMT 2024

Powered by FUDForum. Page generated in 0.02794 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top