ebean icon indicating copy to clipboard operation
ebean copied to clipboard

Mapping - Add support for JOINED and TABLE PER CLASS inheritance strategies

Open rbygrave opened this issue 12 years ago • 18 comments

These inheritance strategies are not supported. Consider this in the 5.x timeframe.

rbygrave avatar Apr 30 '14 10:04 rbygrave

It seems that the inheritance with strategy 'TABLE_PER_CLASS' now works. Since which version is this the case ? Thanks.

kbenhdech avatar Nov 24 '15 16:11 kbenhdech

It should not work. Have you tested it?

rbygrave avatar Nov 24 '15 19:11 rbygrave

Is SINGLE TABLE still the only supported inheritance strategy?

PhoenixRion avatar Jan 20 '16 17:01 PhoenixRion

Yes.

Note that in the absence of sponsorship for specific features the priorities are ElasticSearch integration followed by performance monitoring and then by mapping.

rbygrave avatar Jan 20 '16 19:01 rbygrave

hey @rbygrave, I'm planning on taking a look at this issue. Would you be able to point me to a good starting place?

ncphillips avatar Apr 27 '16 19:04 ncphillips

Hmm. I think the first thing would be to list the required changes. So choose one of 'table per subclass' or 'joined' and then list the things that need to change to support that mapping (DDL, query, inserts, updates, deletes) and maybe pseudo code the behavior of each change?

Then for each specific change (with a pseudo code description) I can help point you into the correct area in the code.

That might be a plan.

rbygrave avatar Apr 27 '16 20:04 rbygrave

Do you have a planned release for this issue?

randikaf avatar Oct 25 '16 13:10 randikaf

Any updates on this issue?

aprasadh avatar Apr 26 '17 22:04 aprasadh

Will this feature be implemented in the near future?

Can I help in any way to implement this?

ajcamilo avatar May 26 '17 15:05 ajcamilo

Near future. Well, no, in that there are other things that are currently a higher priority (documentation, gradle plugin, ebean-elastic, performance monitoring) so for me those other things need attention before this.

Can I help in any way to implement this?

Do you mean funding the effort or actually implementing the code?

rbygrave avatar May 29 '17 08:05 rbygrave

I meant actually implementing the code.

But I have no clue where to start. :disappointed:

ajcamilo avatar May 29 '17 09:05 ajcamilo

Is there any way around this? I used @JoinColumn (simulating @SecondaryTable) but the changes made to columns with the table attribute set to the second table are not persisted.

If there is no form, I would like to collaborate with the implementation.

jcarloshorus avatar Jun 24 '18 15:06 jcarloshorus

Hello, I would like to collaborate with the development of this isshue, since I depend on this functionality to implement a project which has entities with many inherited JOINED type;

I downloaded the github code, did some analysis and realized the following needs:

  1. io.ebeaninternal.server.deploy.InheritInfo add InheritanceType inheritanceType;

  2. io.ebeaninternal.server.deploy.parse.DeployInheritInfo line 115: info.setInheritanceType (ia.strategy ());

  3. io.ebeaninternal.server.deploy.BeanProperty to use the inherited boolean attribute use the owningType attribute to infer the source table of the property

Rob, so I can cope with the implementation, I'd like you to guide me and if you can, that create a specific branch for that isshue !?

jcarloshorus avatar Jul 04 '18 13:07 jcarloshorus

@rbygrave This is interesting for us too, could you help @jcarloshorus ?

IvanAR avatar Jul 11 '18 13:07 IvanAR

@IvanAR I'm working on it (whenever i can) and I already did some improvements. Soon, I will commit so others can collaborate.

jcarloshorus avatar Jul 11 '18 16:07 jcarloshorus

Any updates?

sanuradhag avatar Oct 18 '18 06:10 sanuradhag

I suspect not looking at the fork - https://github.com/jcarloshorus/ebean

For myself the priorities are still with other tasks such as performance monitoring and documentation (and I can't remember the last time anyone assisted with the documentation which is a big task that will take a lot of time). In terms of donations and sponsorship there isn't anything there to adjust priorities or accelerate progress.

If there was assistance for documentation, donations or sponsorship that would help move things forward faster.

rbygrave avatar Oct 18 '18 23:10 rbygrave

So marking this as a Limitation and closing this for now.

This has been open for a few years and has obtained no sponsorship to assist in the development effort. I'm comfortable marking this as a known limitation and closing this makes it clearer that this is not on the roadmap.

rbygrave avatar Aug 20 '19 08:08 rbygrave