Jaguar-dart / jaguar_orm

Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
https://jaguar-dart.github.io
BSD 3-Clause "New" or "Revised" License
217 stars 52 forks source link

Fine grained ORM column annotations #136

Closed tejainece closed 5 years ago

tejainece commented 5 years ago

New annotations: https://github.com/Jaguar-dart/jaguar_orm/blob/master/orm/lib/src/annotations/nextgen.dart

JamesMcIntosh commented 5 years ago

@tejainece Hi Ravi, I think one of the most well developed solutions for annotating data models for ORM consumption would be the JPA specification, picking a subset of their annotations could help with structure and bring the annotation names inline with other similar projects to help with developers coming new to dart.

http://www.techferry.com/articles/hibernate-jpa-annotations.html https://www.doctrine-project.org https://typeorm.io https://docs.microsoft.com/en-us/aspnet/entity-framework

JamesMcIntosh commented 5 years ago

@tejainece I see you have a new annotation Foreign, is that to accommodate one sided foreign relationships?

tejainece commented 5 years ago

I have pushed more new changes. Check it and let me know what you think.

tejainece commented 5 years ago

This is implemented.