ahmetb / orman

lightweight and minimalist ORM for Java/Android. works with SQLite & MySQL. (not actively maintained)
Other
249 stars 47 forks source link

UnsolvableDependencyOrderException in self-referenced entities #31

Closed ahmetb closed 13 years ago

ahmetb commented 13 years ago

If we reference an object from itself (e.g @Entity class A { @OneToOne private A parent; } entity dependency graph inspector thinks that it is a different entity and this creates a cycle (short-circuit) in the dependency graph therefore throws UnsolvableDependencyOrderException and of course @OneToOne does not solve this.

I will be fixing. (@almozavr reported this)