Page 1 of 1

@Any Reflection Support?

Posted: Tue Jun 04, 2013 7:31 am
by RapidTransit
I was wondering if the admin reflection supports @Any notation. (Although trying to get Hibernate to cooperate is a struggle in itself) So the related entity has it own set of fields with @AdminPresentation

Re: @Any Reflection Support?

Posted: Tue Jun 04, 2013 11:45 am
by phillipuniverse
I'm unfamiliar with that annotation, but pretty sure the admin doesn't currently support it. What is the intended functionality of it?

Re: @Any Reflection Support?

Posted: Tue Jun 04, 2013 12:17 pm
by RapidTransit
A composite pseudo foreign key, allows completely different entities to be mapped to the owning entity.

Use case: Making a shipping modification different companies require different information etc. requiring a different schema.

Re: @Any Reflection Support?

Posted: Wed Jun 05, 2013 1:39 pm
by auctionblox
RapidTransit,

I think you would be better off defining a base entity for "ShippingProvider" and extending that to get your "polymorphic" behavior that you desire.