java.lang.IllegalStateException: Unregistered type class java.util.ArrayList

17 views
Skip to first unread message

Ilya

unread,
Apr 10, 2013, 2:12:11 PM4/10/13
to twig-p...@googlegroups.com
I'm seeing this error when trying to save/update an object.

I have an entity called Season.
In each Season, there are a list of Game objects

Season.java
@Parent List<Game> games;


Game.java
@Child Season season;

I am trying to add a new game to the season using this code.
List<Game> games = season.getGames()==null?new ArrayList<Game>():(ArrayList<Game>) season.getGames(); 
games.add(new Game(date, wId, ds.load(Member.class, wId).getName(), league, season, scores));

season.setGames(games);
ds.update(season);

It's odd that the error is saying i haven't registered the ArrayList.

Thanks,

Ilya
Reply all
Reply to author
Forward
0 new messages