sai-pullabhotla / catatumbo

JPA like Persistence Framework for Google Cloud Datastore and Cloud Firestore
http://catatumbo.io
Apache License 2.0
51 stars 20 forks source link

Support for Generic entities #182

Open athieriot opened 6 years ago

athieriot commented 6 years ago

Proposal for #179

Update most of the entityManager methods to support receiving an extra ParameterizedType in case the user need to persist a Generic entity.

The type lost by erasure will then be reified using the informations from the Parameterized type and the fields will be introspected as normal.

Previous behaviour is not impacted and no breaking change was needed.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 80.374% when pulling 125049440616ab0142ed0b688e8e0d482be5d331 on athieriot:parameterizedtype into b0ab810781152c5f41cde4d77c2e4ac4cd3d4fab on sai-pullabhotla:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 80.374% when pulling 9f7fc206ca50b1e9543e5692a66fa237e1491f21 on athieriot:parameterizedtype into b0ab810781152c5f41cde4d77c2e4ac4cd3d4fab on sai-pullabhotla:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 80.374% when pulling 9fac1ff1fe3a2d5bddd5a7c0bc2e8f6dd770f419 on athieriot:parameterizedtype into b0ab810781152c5f41cde4d77c2e4ac4cd3d4fab on sai-pullabhotla:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 80.374% when pulling 9fac1ff1fe3a2d5bddd5a7c0bc2e8f6dd770f419 on athieriot:parameterizedtype into b0ab810781152c5f41cde4d77c2e4ac4cd3d4fab on sai-pullabhotla:master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.2%) to 80.374% when pulling 419c442ef4cfe93a36e6d86555ace2c98c6c3f28 on athieriot:parameterizedtype into b0ab810781152c5f41cde4d77c2e4ac4cd3d4fab on sai-pullabhotla:master.