Base model#29
Conversation
|
|
||
| /** | ||
| * @author derovi | ||
| */ | ||
|
|
| @Id | ||
| @GeneratedValue(generator = "UUID") | ||
| @GenericGenerator(name = "UUID", | ||
| strategy = "org.hibernate.id.UUIDGenerator") | ||
| private UUID id; | ||
|
|
There was a problem hiding this comment.
Decks can be created localy. -> So when they did, Frontend created UUID for the deck. So u do not need to Generate UUID on the server again.
| @OneToMany(fetch = FetchType.LAZY) | ||
| private List<DeleteRecord> deleteRecords; | ||
| } |
| import java.util.UUID; | ||
|
|
||
| /** | ||
| * @author derovi |
| public class CardSimple extends AbstractCard { | ||
| } |
There was a problem hiding this comment.
u need to create a layout class, that contain cards positions for Grid Mode
| public enum AnswerType { | ||
| INTEGER, FLOAT, STRING | ||
| } |
There was a problem hiding this comment.
why you split the answer by type? I think it is ok, just to keep the answer only in a string,
Seems to me as an unnecessary complication
| public class CardExtended extends AbstractCard { | ||
| private String answer; | ||
| } |
There was a problem hiding this comment.
sooooo
i think "CARD WITH ANSWER" is no exists, it is better to create a "ROTATED CARD". (we need to discuss it )
| @Id | ||
| @GeneratedValue(generator = "UUID") | ||
| @GenericGenerator(name = "UUID", | ||
| strategy = "org.hibernate.id.UUIDGenerator") |
There was a problem hiding this comment.
uuid also for card dsnt generated, Frontend do it by it own
|
No description provided.