Open bruno-lopes opened 5 years ago
This would require a join on the tables, we will consider it. Thanks for the feedback.
This would require a join on the tables, we will consider it. Thanks for the feedback.
This would be very nice :smile:. I'm currently migrating an old system to a new Micronaut API, and it is the only thing that I'm missing in Micronaut Data JDBC. For now, I'm using Micronaut Data JPA.
Thanks for the wonderful work in Micronaut and Micronaut Data.
Good day. Is there any work around or solution to this issue, @graemerocher ? How do we go about creating an inheritance between mapped entities?
There is no solution at this moment. I think the only way is to have a table per entity mapping.
I tried to create an abstract class (parent class), and create a table per entity (child class). But Micronaut does not map attributes of the parent class. Is there a way to do this?
Micronaut Version: 1.2.0 Micronaut Data Version: 1.0.0-BUILD-SNAPSHOT Postgres Version: 9.5
I'm trying to use Micronaut Data JDBC, but I'm having trouble with inheritance.
I have two classes: Student and RegularStudent as following:
and:
}
And the following:
When I try to persist a regular student object:
I get the following error:
It occurs because I have two tables in database:
Student -> fields (student_id and active)
Regular Student -> student_id and entrance_date
Is/Will it possible to map this situation in Micronaut and use the JDBC Repository default methods?