Use super method in getters and setters

This commit is contained in:
2021-04-03 14:50:36 +02:00
parent b0695e1c12
commit be87269876
3 changed files with 35 additions and 21 deletions
+14 -1
View File
@@ -4,6 +4,19 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_2_0.xsd"
version="2.0">
<!-- TODO -->
<entity class="dst.ass1.jpa.model.impl.Trip" name="Trip">
<entity-listeners>
<entity-listener class="dst.ass1.jpa.listener.TripListener" />
</entity-listeners>
<attributes>
<id name="id"><generated-value /></id>
<many-to-one name="pickup" target-entity="dst.ass1.jpa.model.impl.Location" optional="false" />
<many-to-one name="destination" target-entity="dst.ass1.jpa.model.impl.Location" optional="false" />
<many-to-many name="stops" target-entity="dst.ass1.jpa.model.impl.Location" />
<one-to-one name="tripInfo" target-entity="dst.ass1.jpa.model.impl.TripInfo" />
<one-to-one name="match" target-entity="dst.ass1.jpa.model.impl.Match" mapped-by="trip" />
<one-to-one name="rider" target-entity="dst.ass1.jpa.model.impl.Rider" />
</attributes>
</entity>
</entity-mappings>