Frage

I am currently using a fork of greenDAO by Path that enables annotation of the Class, fields, methods, etc. generated by greenDAO.

However, when a create a field which has a ToMany relationship with another Class, I cannot seem to annotate is anymore. Is there a work around for this?

I am using the annotations for XML bindings using simple XML.

Thank you.

War es hilfreich?

Lösung

In your generated class, override setChannels method and put your annotation there. inside that custom method, you can set channels manually.

don't forget to keep it inside KEEP sections ( if u don't have them, add schema.enableKeepSectionsByDefault(); to your generator).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top