- /**
- * {@inheritDoc}
- */
- @Override
- public Group createObject(ResultSet resultSet) throws SQLException {
- return new DefaultGroup(resultSet.getString("GROUPS.ID")).name(resultSet.getString("GROUPS.NAME")).url(resultSet.getString("GROUPS.URL"));
- }
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Group setArtists(Collection<Artist> artists) {
+ getValue("artists", Collection.class).set(artists);
+ return this;
+ }
+
+ //
+ // OBJECT METHODS
+ //
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public int hashCode() {
+ return getId().hashCode();
+ }