Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363820

Summary: Issue with clone method from VPDMultitenantPolicy
Product: z_Archived Reporter: Guy Pelletier <guy.pelletier>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.foundation-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed changes none

Description Guy Pelletier CLA 2011-11-15 08:32:29 EST
Causing a class cast exception at descriptor initialization time.

Test model to expose error:

@Entity
@Table(name="VPD_TASK")
@Multitenant(VPD)
@Inheritance(strategy=SINGLE_TABLE)
@DiscriminatorColumn(name="DTYPE")
@DiscriminatorValue("TASK")
@TenantDiscriminatorColumn(name = "TENANT_ID", contextProperty = "tenant.id")
@Cacheable(false)
public class Task implements Serializable {
  ...
}


@Entity
@DiscriminatorValue("SUBTASK")
public class SubTask extends Task {
  ...
}
Comment 1 Guy Pelletier CLA 2011-11-15 09:12:44 EST
Created attachment 207026 [details]
Proposed changes
Comment 2 Guy Pelletier CLA 2011-11-15 13:00:41 EST
Changes have been submitted.

Verified by: Peter Krogh

Tests: Multitenant model extended to expose error. With fix in place, the existing test (testVPDEMPerTenant), with some new testing lines added, continues to pass.
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:32:41 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink