質問

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.

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top