You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2022/08/30 11:06:11 UTC
[isis-app-simpleapp] 02/03: renames blob attachment field
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch jdo-SNAPSHOT
in repository https://gitbox.apache.org/repos/asf/isis-app-simpleapp.git
commit 8a3e7a4d6c661d4e3a3cafdc7b36bbc273c029fe
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Tue Aug 30 12:00:35 2022 +0100
renames blob attachment field
---
.../java/domainapp/modules/simple/dom/so/SimpleObject.java | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.java b/module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.java
index 536c630..2765da2 100644
--- a/module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.java
+++ b/module-simple/src/main/java/domainapp/modules/simple/dom/so/SimpleObject.java
@@ -27,7 +27,6 @@ import org.apache.isis.applib.annotation.Action;
import org.apache.isis.applib.annotation.ActionLayout;
import org.apache.isis.applib.annotation.DomainObject;
import org.apache.isis.applib.annotation.DomainObjectLayout;
-import org.apache.isis.applib.annotation.Editing;
import org.apache.isis.applib.annotation.MemberSupport;
import org.apache.isis.applib.annotation.PromptStyle;
import org.apache.isis.applib.annotation.Property;
@@ -123,21 +122,21 @@ public class SimpleObject implements Comparable<SimpleObject> {
private String notes;
@AttributeOverrides({
- @AttributeOverride(name="name", column=@Column(name="readOnlyProperty_name")),
- @AttributeOverride(name="mimeType",column=@Column(name="readOnlyProperty_mimeType")),
- @AttributeOverride(name="bytes", column=@Column(name="readOnlyProperty_bytes"))
+ @AttributeOverride(name="name", column=@Column(name="attachment_name")),
+ @AttributeOverride(name="mimeType",column=@Column(name="attachment_mimeType")),
+ @AttributeOverride(name="bytes", column=@Column(name="attachment_bytes"))
})
@Embedded
- private BlobJpaEmbeddable attachmentEmbedded;
+ private BlobJpaEmbeddable attachment;
@PdfJsViewer
@Property()
@PropertyLayout(fieldSetId = "content", sequence = "1")
public Blob getAttachment() {
- return BlobJpaEmbeddable.toBlob(attachmentEmbedded);
+ return BlobJpaEmbeddable.toBlob(attachment);
}
public void setAttachment(final Blob attachment) {
- this.attachmentEmbedded = BlobJpaEmbeddable.fromBlob(attachment);
+ this.attachment = BlobJpaEmbeddable.fromBlob(attachment);
}
@Action(semantics = IDEMPOTENT, commandPublishing = Publishing.ENABLED, executionPublishing = Publishing.ENABLED)