I have used the demo model
https://github.com/peholmst/ActivitiVaadinDevoxx11
I have a form the creates an Object:
@Entity(name = "SUD_REQUEST")
public class SudRequest extends AbstractEntity
implements Serializable {
...
@ElementCollection
@CollectionTable(name = JpaConstants.RELEASE_NOTE,
joinColumns = @JoinColumn(name = JpaConstants.SUD_ID))
@Column(name = JpaConstants.SUD_RELEASE_NOTES, nullable = true)
private List<ReleaseNote> releaseNotes;
...
Then my Release Note:
@Embeddable
public class ReleaseNote implements Serializable {
@Column
String creator;
@Column
String text;
@Column
@Temporal(TemporalType.TIMESTAMP)
protected Calendar timestamp;
I want to be able to add a note to the Request with the currentLoggedInUser and current timestamp.
Can someone help me understand how to tackle this issue in a single form?
Even if I use a popup window. But I am not clear how to associate the popup formData back to the SudRequestForm…?