Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363820 - Issue with clone method from VPDMultitenantPolicy
Summary: Issue with clone method from VPDMultitenantPolicy
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-15 08:32 EST by Guy Pelletier CLA
Modified: 2022-06-09 10:32 EDT (History)
1 user (show)

See Also:


Attachments
Proposed changes (10.93 KB, patch)
2011-11-15 09:12 EST, Guy Pelletier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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