persistence@glassfish.java.net

Re: why Embeddable and MappedSuperclass are required in persistence.xml file?

From: Tom Ware <tom.ware_at_oracle.com>
Date: Fri, 04 Aug 2006 13:24:55 -0400

My understanding of the specification is that in JavaSE, all the managed
classes including Embeddable & MappedSuperclass should be listed to
ensure portability.

That does not prevent us from implementing a feature that allows users
to exclude them.

-Tom

Marina Vatkina wrote:

>Isn't it required by the spec?
>
>thanks,
>-marina
>
>Tom Ware wrote:
>
>
>>I think an enhancement request to remove this requirement would be a
>>good thing to add to the issue tracker.
>>
>>-Tom
>>
>>Sanjeeb Kumar Sahoo wrote:
>>
>>
>>
>>>Hi,
>>>
>>>I understand why a user has to specify *Entity* class in
>>>persistence.xml on Java SE environment. But why does a user have to
>>>specify *Embeddable* & *MappedSuperclass* list?
>>>
>>>Thanks,
>>>Sahoo
>>>
>>>
>>>
>>>

-- 
Tom Ware
Principal Software Engineer
Oracle Canada Inc.
Direct: (613) 783-4598
Email: tom.ware_at_oracle.com