-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
612 additions
and
0 deletions.
There are no files selected for viewing
113 changes: 113 additions & 0 deletions
113
...ogen-sample/src/main/java/org/fugerit/java/daogen/sample/impl/helper/MPSchemaAddress.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
package org.fugerit.java.daogen.sample.impl.helper; | ||
|
||
import org.eclipse.microprofile.openapi.annotations.media.Schema; | ||
import org.fugerit.java.core.db.daogen.BasicWrapperNG; | ||
import org.fugerit.java.daogen.sample.def.model.ModelAddress; | ||
import org.fugerit.java.daogen.sample.def.model.ModelUser; | ||
|
||
// custom import start ( code above here will be overwritten ) | ||
// custom import end ( code below here will be overwritten ) | ||
|
||
/** | ||
* MPSchemaAddress, version : 1.0.0 | ||
* | ||
* author: fugerit | ||
* | ||
* warning!: auto generated object, insert custom code only between comments : | ||
* // custom code start ( code above here will be overwritten ) | ||
* // custom code end ( code below here will be overwritten ) | ||
*/ | ||
@Schema( description = "Contains addresses data") | ||
public class MPSchemaAddress extends BasicWrapperNG<ModelAddress> implements ModelAddress { | ||
|
||
// custom code start ( code above here will be overwritten ) | ||
// custom code end ( code below here will be overwritten ) | ||
|
||
public MPSchemaAddress( ModelAddress wrapped ) { | ||
super( wrapped ); | ||
} | ||
|
||
public ModelAddress unwrap( MPSchemaAddress wrapper ) { | ||
ModelAddress res = wrapper; | ||
while ( res instanceof MPSchemaAddress ) { | ||
res = ((MPSchemaAddress)res).unwrapModel(); | ||
} | ||
return res; | ||
} | ||
|
||
/* | ||
* fields generated for relations | ||
*/ | ||
|
||
@Override | ||
public void setUser( ModelUser value ) { | ||
this.unwrapModel().setUser( value ); | ||
} | ||
|
||
@Override | ||
public ModelUser getUser() { | ||
return this.unwrapModel().getUser(); | ||
} | ||
|
||
/* | ||
* fields generated for entity attributes | ||
*/ | ||
@Override | ||
public void setId( java.math.BigDecimal value ) { | ||
this.unwrapModel().setId( value ); | ||
} | ||
|
||
@Schema( description = "Address system id" ) | ||
@Override | ||
public java.math.BigDecimal getId() { | ||
return this.unwrapModel().getId(); | ||
} | ||
|
||
@Override | ||
public void setIdUser( java.math.BigDecimal value ) { | ||
this.unwrapModel().setIdUser( value ); | ||
} | ||
|
||
@Schema( description = "User linked to to address" ) | ||
@Override | ||
public java.math.BigDecimal getIdUser() { | ||
return this.unwrapModel().getIdUser(); | ||
} | ||
|
||
@Override | ||
public void setDateInsert( java.time.LocalDateTime value ) { | ||
this.unwrapModel().setDateInsert( value ); | ||
} | ||
|
||
@Override | ||
public java.time.LocalDateTime getDateInsert() { | ||
return this.unwrapModel().getDateInsert(); | ||
} | ||
|
||
@Override | ||
public void setDateUpdate( java.time.LocalDateTime value ) { | ||
this.unwrapModel().setDateUpdate( value ); | ||
} | ||
|
||
@Override | ||
public java.time.LocalDateTime getDateUpdate() { | ||
return this.unwrapModel().getDateUpdate(); | ||
} | ||
|
||
@Override | ||
public void setInfo( java.lang.String value ) { | ||
this.unwrapModel().setInfo( value ); | ||
} | ||
|
||
@Schema( description = "Address info" ) | ||
@Override | ||
public java.lang.String getInfo() { | ||
return this.unwrapModel().getInfo(); | ||
} | ||
|
||
@Override | ||
public boolean isEmpty() { | ||
return this.unwrapModel().isEmpty(); | ||
} | ||
|
||
} |
74 changes: 74 additions & 0 deletions
74
...ogen-sample/src/main/java/org/fugerit/java/daogen/sample/impl/helper/MPSchemaLogData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package org.fugerit.java.daogen.sample.impl.helper; | ||
|
||
import org.eclipse.microprofile.openapi.annotations.media.Schema; | ||
import org.fugerit.java.core.db.daogen.BasicWrapperNG; | ||
import org.fugerit.java.daogen.sample.def.model.ModelLogData; | ||
|
||
// custom import start ( code above here will be overwritten ) | ||
// custom import end ( code below here will be overwritten ) | ||
|
||
/** | ||
* MPSchemaLogData, version : 1.0.0 | ||
* | ||
* author: fugerit | ||
* | ||
* warning!: auto generated object, insert custom code only between comments : | ||
* // custom code start ( code above here will be overwritten ) | ||
* // custom code end ( code below here will be overwritten ) | ||
*/ | ||
public class MPSchemaLogData extends BasicWrapperNG<ModelLogData> implements ModelLogData { | ||
|
||
// custom code start ( code above here will be overwritten ) | ||
// custom code end ( code below here will be overwritten ) | ||
|
||
public MPSchemaLogData( ModelLogData wrapped ) { | ||
super( wrapped ); | ||
} | ||
|
||
public ModelLogData unwrap( MPSchemaLogData wrapper ) { | ||
ModelLogData res = wrapper; | ||
while ( res instanceof MPSchemaLogData ) { | ||
res = ((MPSchemaLogData)res).unwrapModel(); | ||
} | ||
return res; | ||
} | ||
|
||
/* | ||
* fields generated for entity attributes | ||
*/ | ||
@Override | ||
public void setId( java.math.BigDecimal value ) { | ||
this.unwrapModel().setId( value ); | ||
} | ||
|
||
@Override | ||
public java.math.BigDecimal getId() { | ||
return this.unwrapModel().getId(); | ||
} | ||
|
||
@Override | ||
public void setLogTime( java.time.LocalDateTime value ) { | ||
this.unwrapModel().setLogTime( value ); | ||
} | ||
|
||
@Override | ||
public java.time.LocalDateTime getLogTime() { | ||
return this.unwrapModel().getLogTime(); | ||
} | ||
|
||
@Override | ||
public void setInfo( java.lang.String value ) { | ||
this.unwrapModel().setInfo( value ); | ||
} | ||
|
||
@Override | ||
public java.lang.String getInfo() { | ||
return this.unwrapModel().getInfo(); | ||
} | ||
|
||
@Override | ||
public boolean isEmpty() { | ||
return this.unwrapModel().isEmpty(); | ||
} | ||
|
||
} |
74 changes: 74 additions & 0 deletions
74
...ple/src/main/java/org/fugerit/java/daogen/sample/impl/helper/MPSchemaTestTwoFieldKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package org.fugerit.java.daogen.sample.impl.helper; | ||
|
||
import org.eclipse.microprofile.openapi.annotations.media.Schema; | ||
import org.fugerit.java.core.db.daogen.BasicWrapperNG; | ||
import org.fugerit.java.daogen.sample.def.model.ModelTestTwoFieldKey; | ||
|
||
// custom import start ( code above here will be overwritten ) | ||
// custom import end ( code below here will be overwritten ) | ||
|
||
/** | ||
* MPSchemaTestTwoFieldKey, version : 1.0.0 | ||
* | ||
* author: fugerit | ||
* | ||
* warning!: auto generated object, insert custom code only between comments : | ||
* // custom code start ( code above here will be overwritten ) | ||
* // custom code end ( code below here will be overwritten ) | ||
*/ | ||
public class MPSchemaTestTwoFieldKey extends BasicWrapperNG<ModelTestTwoFieldKey> implements ModelTestTwoFieldKey { | ||
|
||
// custom code start ( code above here will be overwritten ) | ||
// custom code end ( code below here will be overwritten ) | ||
|
||
public MPSchemaTestTwoFieldKey( ModelTestTwoFieldKey wrapped ) { | ||
super( wrapped ); | ||
} | ||
|
||
public ModelTestTwoFieldKey unwrap( MPSchemaTestTwoFieldKey wrapper ) { | ||
ModelTestTwoFieldKey res = wrapper; | ||
while ( res instanceof MPSchemaTestTwoFieldKey ) { | ||
res = ((MPSchemaTestTwoFieldKey)res).unwrapModel(); | ||
} | ||
return res; | ||
} | ||
|
||
/* | ||
* fields generated for entity attributes | ||
*/ | ||
@Override | ||
public void setIdOne( java.math.BigDecimal value ) { | ||
this.unwrapModel().setIdOne( value ); | ||
} | ||
|
||
@Override | ||
public java.math.BigDecimal getIdOne() { | ||
return this.unwrapModel().getIdOne(); | ||
} | ||
|
||
@Override | ||
public void setIdTwo( java.math.BigDecimal value ) { | ||
this.unwrapModel().setIdTwo( value ); | ||
} | ||
|
||
@Override | ||
public java.math.BigDecimal getIdTwo() { | ||
return this.unwrapModel().getIdTwo(); | ||
} | ||
|
||
@Override | ||
public void setInfo( java.lang.String value ) { | ||
this.unwrapModel().setInfo( value ); | ||
} | ||
|
||
@Override | ||
public java.lang.String getInfo() { | ||
return this.unwrapModel().getInfo(); | ||
} | ||
|
||
@Override | ||
public boolean isEmpty() { | ||
return this.unwrapModel().isEmpty(); | ||
} | ||
|
||
} |
85 changes: 85 additions & 0 deletions
85
...aogen-sample/src/main/java/org/fugerit/java/daogen/sample/impl/helper/MPSchemaUpload.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
package org.fugerit.java.daogen.sample.impl.helper; | ||
|
||
import org.eclipse.microprofile.openapi.annotations.media.Schema; | ||
import org.fugerit.java.core.db.daogen.BasicWrapperNG; | ||
import org.fugerit.java.daogen.sample.def.model.ModelUpload; | ||
|
||
// custom import start ( code above here will be overwritten ) | ||
// custom import end ( code below here will be overwritten ) | ||
|
||
/** | ||
* MPSchemaUpload, version : 1.0.0 | ||
* | ||
* author: fugerit | ||
* | ||
* warning!: auto generated object, insert custom code only between comments : | ||
* // custom code start ( code above here will be overwritten ) | ||
* // custom code end ( code below here will be overwritten ) | ||
*/ | ||
@Schema( description = "Contains upload blob") | ||
public class MPSchemaUpload extends BasicWrapperNG<ModelUpload> implements ModelUpload { | ||
|
||
// custom code start ( code above here will be overwritten ) | ||
// custom code end ( code below here will be overwritten ) | ||
|
||
public MPSchemaUpload( ModelUpload wrapped ) { | ||
super( wrapped ); | ||
} | ||
|
||
public ModelUpload unwrap( MPSchemaUpload wrapper ) { | ||
ModelUpload res = wrapper; | ||
while ( res instanceof MPSchemaUpload ) { | ||
res = ((MPSchemaUpload)res).unwrapModel(); | ||
} | ||
return res; | ||
} | ||
|
||
/* | ||
* fields generated for entity attributes | ||
*/ | ||
@Override | ||
public void setId( java.math.BigDecimal value ) { | ||
this.unwrapModel().setId( value ); | ||
} | ||
|
||
@Override | ||
public java.math.BigDecimal getId() { | ||
return this.unwrapModel().getId(); | ||
} | ||
|
||
@Override | ||
public void setDateInsert( java.time.LocalDateTime value ) { | ||
this.unwrapModel().setDateInsert( value ); | ||
} | ||
|
||
@Override | ||
public java.time.LocalDateTime getDateInsert() { | ||
return this.unwrapModel().getDateInsert(); | ||
} | ||
|
||
@Override | ||
public void setDateUpdate( java.time.LocalDateTime value ) { | ||
this.unwrapModel().setDateUpdate( value ); | ||
} | ||
|
||
@Override | ||
public java.time.LocalDateTime getDateUpdate() { | ||
return this.unwrapModel().getDateUpdate(); | ||
} | ||
|
||
@Override | ||
public void setContent( org.fugerit.java.core.db.daogen.ByteArrayDataHandler value ) { | ||
this.unwrapModel().setContent( value ); | ||
} | ||
|
||
@Override | ||
public org.fugerit.java.core.db.daogen.ByteArrayDataHandler getContent() { | ||
return this.unwrapModel().getContent(); | ||
} | ||
|
||
@Override | ||
public boolean isEmpty() { | ||
return this.unwrapModel().isEmpty(); | ||
} | ||
|
||
} |
Oops, something went wrong.