Is that an error or just a different design?
The way the entity is setup constrains the group membership to one
GlAccountGroup per GlAccountGroupType for each GlAccount. In other
words, it is setup so that if you have a GlAccount and the desired
GlAccountGroupType you can find out which group it is in.
Why to do that might be more clear based on the initial "use case" for
this as shown in the demo data for it (ie the tax form stuff).
-David
On Jul 22, 2009, at 6:53 AM, Jacopo Cappellato wrote:
I think there is an error in the entity definition for the
GlAccountGroupMember, its primary key is defined as:
glAccountId
glAccountGroupTypeId
instead of:
glAccountId
glAccountGroupId
I really think that the field should be removed from the pk but also
from the entity; it doesn't make sense to me to have it this entity
since it is already in the GlAccountGroup entity.
Any comments/objections?
Jacopo