Skip to content

Commit

Permalink
Test add
Browse files Browse the repository at this point in the history
  • Loading branch information
fugerit79 committed Nov 14, 2024
1 parent 320ecf9 commit 2373ea2
Show file tree
Hide file tree
Showing 6 changed files with 612 additions and 0 deletions.
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();
}

}
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();
}

}
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();
}

}
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();
}

}
Loading

0 comments on commit 2373ea2

Please sign in to comment.