Annotation in Entity-Classes

216 views
Skip to first unread message

Michael

unread,
Jul 29, 2012, 6:38:49 PM7/29/12
to gree...@googlegroups.com
Hi,

I need to parse xml-files and write the Data into a database. I would like to use simple xml to parse the files. Therefore, I need to anotate the fields in the auto-generated Entity-Classes.
Is it possibile to do this?

Thanks
Michael

Markus Junginger

unread,
Aug 2, 2012, 8:49:42 AM8/2/12
to gree...@googlegroups.com
It's not supported. The only workaround I see at the moment is to annotate generated entity code. Of course, every code generation will overwrite, but maybe your entities are already stable. So, why not... Version control is a must anyways.

I think there had been some discussion about passing annotations to the generator. If you want, you could give it a try by forking greenDAO. :)

Markus

yiğit boyar

unread,
Aug 8, 2012, 12:59:38 AM8/8/12
to gree...@googlegroups.com
FYI, I'm working on annotation support for green-dao because we also need it for Jackson.
Stay tuned.

Btw, it will be based on my hack to separate generated code from the actual entity. I guess Markus did not have time to review it but I'm hoping to get it on production in the following 3 weeks (sadly it is my side project within the company).

you can follow here:

yigit
Reply all
Reply to author
Forward
0 new messages