Ken, please try to moderate your own posts better, as others have said.
Four emails in about an hour, with only you replying to your own emails, is
a real waste of everybody's attention. Until you've spent at least a few
hours on a problem, you're probably not stuck enough to beg free time from
others.

2013/5/30 Ken in Nashua <kcola...@live.com>

> Solution...
>
> this was a hibernate initialization issue.
>
> I was seeding an entity
> I skipped a few fields thinking it was not a problem.
> but hibernate didn't like me operating on the entity while it was in its
> initialization phase.
>
> rule of thumb? initialize all your properties before your code decides to
> operate on them.
>
> Pheewwwwww
>
>
>         PlayerStatsBuilder statsb = new PlayerStatsBuilder();
>         PlayerStats kstats = statsb.build();
>         kstats.setLeague(ELeague.A);
>         kstats.setSeason(ESeason.SUMMER);
>         kstats.setYear(ty);
>         kstats.setG(4);        kstats.setA(4);        kstats.setGp(4);
>         kstats.setPts(kstats.getA()+kstats.getG());
>         kstats.setPpa(kstats.getPts() > 0 ? kstats.getGp() /
> kstats.getPts() : 0);
>         kstats.setPlayer(ken);
>         PlayerStats dstats = statsb.build();
>         dstats.setLeague(ELeague.A);
>         dstats.setSeason(ESeason.SUMMER);
>         dstats.setYear(ty);
>         dstats.setG(4);        dstats.setA(4);    dstats.setGp(4);
>         dstats.setPts(dstats.getA()+dstats.getG());
>         dstats.setPpa(dstats.getPts() > 0 ? dstats.getGp() /
> dstats.getPts() : 0);
>         dstats.setPlayer(doug);
>         PlayerStats sstats = statsb.build();
>         sstats.setLeague(ELeague.A);
>         sstats.setSeason(ESeason.SUMMER);
>         sstats.setYear(ty);
>         sstats.setG(4);        sstats.setA(4);        sstats.setGp(4);
>         sstats.setPts(sstats.getA()+sstats.getG());
>         sstats.setPpa(sstats.getPts() > 0 ? sstats.getGp() /
> sstats.getPts() : 0);
>         sstats.setPlayer(shawn);
>         configuration.add("ken stats", kstats);
>         configuration.add("doug stats", dstats);
>         configuration.add("shawn stats", sstats);
>

Reply via email to