Question

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.

Was it helpful?

Solution

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).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top