Skip to content

Commit

Permalink
persistable adjusts
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jul 31, 2024
1 parent dd2a4d6 commit cbf6e7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
classStaticFieldsSection: 0,
classFieldsSection: 0,
classAdditionalFieldsSection: 0,
classInnerAdditionalFieldsSection: 0,
classAdditionalFieldsMethodsSection: 0,
classAdditionalRelationshipsSection: 0,
classAdditionalRelationshipsMethodsSection: 0,
Expand Down Expand Up @@ -124,6 +125,7 @@ data class <%= persistClass %>(
<&- fragments.classAdditionalRelationshipsSection() -&>
// jhipster-needle-entity-add-field - JHipster will add fields here
) :<&- fragments.extendsSection() -&> Serializable<&- fragments.additionalInterfacesSection() -&> {
<&- fragments.classInnerAdditionalFieldsSection() -&>
<%_
// An embedded entity should not reference entities that embed it, unless the other entities are also embedded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties
, Persistable<<%= primaryKey.type %>>
<&_ } -&>

<&_ if (fragment.classAdditionalFieldsSection) { -&>
<&_ if (fragment.classInnerAdditionalFieldsSection) { -&>
@Transient
private var isPersisted: Boolean = false,
private var isPersisted: Boolean = false
<&_ } -&>

<&_ if (fragment.classAdditionalFieldsMethodsSection) { -&>
Expand Down

0 comments on commit cbf6e7c

Please sign in to comment.