Yes, you could do that but you wouldn’t have the Persistable apis at your disposal so this approach may not be very useful (how would you keep typeE1OrE2 up to date). What is your use case? can you use foreign key reference?