I'm writting the bookmark entity, and i change userId(int) to user(User), but keeping the table compatibility. [originally posted on jforum.net by Guilherme Moreira]
For BookmarkType it's ok using Enum, for now i'll use like it is now, but i want to try using a enum, of java 5. [originally posted on jforum.net by Guilherme Moreira]
In BookmarkDAO there is a method which receives relationId, relationType, and user, and the return is a Bookmark, but this search could returns more than one Bookmark. Of course if in the hour to add one bookmark, it to verify if already exists one for such user, type and id, it's ok [originally posted on jforum.net by Guilherme Moreira]
I've finished the Bookmark entity, DAO and TestCase, if you enconter some mistake please tell me! [originally posted on jforum.net by Guilherme Moreira]
What are your superhero powers? Go ahead and try them on this tiny ad: