Well, almost actually, it saves the album and all pictures and even sets the thumbnail but that one picture that is the thumbnail has no album_id filled in.
That being said; here is the executed sql:
Code:
11:59:55,526 INFO [STDOUT] Hibernate: insert into pictures (album_id, content_type, creation_date, description, height, name, path, image_size, thumb
nail, width) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11:59:55,698 INFO [STDOUT] Hibernate: insert into albums (creation_date, description, name, picture_count, thumbnail) values (?, ?, ?, ?, ?)
11:59:55,808 INFO [STDOUT] Hibernate: insert into pictures (album_id, content_type, creation_date, description, height, name, path, image_size, thumb
nail, width) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11:59:55,854 INFO [STDOUT] Hibernate: insert into pictures (album_id, content_type, creation_date, description, height, name, path, image_size, thumb
nail, width) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11:59:55,901 INFO [STDOUT] Hibernate: insert into pictures (album_id, content_type, creation_date, description, height, name, path, image_size, thumb
nail, width) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
11:59:55,964 INFO [STDOUT] Hibernate: insert into pictures (album_id, content_type, creation_date, description, height, name, path, image_size, thumb
nail, width) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
He forgets to do an update at the end :(