0
我有2代表一个是feestructure
和第二是feedetails
映射之间的2台
feedetails
是具有feestructure
表ID为外键和一个amount
场
所以我的问题是,当我进入一个重复的外国键入feedetails
和amount
字段中的任何值,则应该计算对应amount
总和的重复ID的数量,并且该amount
的总和应显示在amount
字段的feestructure
表中。
我在我的项目中使用spring,hibernate和MySQL。