Hi Jonathan
Why don't you use the WorkEffortNote entity?
Regards
Scott
Jonathon -- Improov wrote:
Chris,
I can't find the <extend-entity> concept at
http://ofbiz.apache.org/docs/entity.html . But I did find a few
examples in Content (1), Party (7) and Product (1) modules.
Are there some docs on the usage of the <extend-entity> XML entity?
We can move this discussion into another thread if you want.
But first, let me sneak in a few quick questions! Thanks!
How does <extend-entity> work? From looks of it, it seems to simply
add a new field (or fields, or foreign keys, etc) to an existing
table. The only effect this seems to achieve is to separate the stock
entity definitions from any custom entity definitions. So, though we
"extend-entity"-ize the UserLoginHistory entity (in Party module), we
still get 1 (but different) table: UserLoginHistory. Not
UserLoginHistory_custom or UserLoginHistory_attr in addition to
UserLoginHistory.
But still, this looks absolutely fabulous for separating my custom
entity definitions from OFBiz's entity definitions.
Thanks again, Chris!
Jonathon
Chris Howe wrote:
I won't speak to this specific enhancement as I
haven't explored work effort very much.
I think you'll find the least amount of frustration by
using the <extend-entity> element in your
entitymodel.xml for your enhancements instead of
changing the entity definition in the OFBiz
entitymodel.xml files. Couple that with the approach
in
http://ofbizwiki.go-integral.com/Wiki.jsp?page=FAQ21
and you should be able to keep your code separated
entirely from the OFBiz codebase. Then if you want to
contribute what you've done when it's all working for
inclusion in the community project, you can either
make the changes necessary and create a patch or
simply offer your entire side project and let someone
else reincorporate it into the codebase. This will
keep you from relying on other people to review and
commit your improvements before you can move your
custom project forward.