Create dmf test module (#493)
* Add DMF parent module + submodules Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Fix sonar issue Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Refactor Test Module Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * - Fix tenant is empty - Small refactoring Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Remove org.springframework.context.annotation.Description Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Configure rabbit test template Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Fix header Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * tenant should not be empty Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Increase time out Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Increase 3 to sec. Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Fix comments Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Add port Signed-off-by: SirWayne <dennis.melzer@bosch-si.com> * Fix test config Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
This commit is contained in:
@@ -20,6 +20,7 @@ import org.eclipse.hawkbit.repository.model.helper.SystemManagementHolder;
|
||||
import org.eclipse.persistence.annotations.Multitenant;
|
||||
import org.eclipse.persistence.annotations.MultitenantType;
|
||||
import org.eclipse.persistence.annotations.TenantDiscriminatorColumn;
|
||||
import org.hibernate.validator.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* Holder of the base attributes common to all tenant aware entities.
|
||||
@@ -33,6 +34,7 @@ public abstract class AbstractJpaTenantAwareBaseEntity extends AbstractJpaBaseEn
|
||||
|
||||
@Column(name = "tenant", nullable = false, insertable = false, updatable = false, length = 40)
|
||||
@Size(max = 40)
|
||||
@NotEmpty
|
||||
private String tenant;
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,6 +24,7 @@ import javax.validation.constraints.Size;
|
||||
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
||||
import org.eclipse.hawkbit.repository.model.TenantAwareBaseEntity;
|
||||
import org.eclipse.hawkbit.repository.model.TenantMetaData;
|
||||
import org.hibernate.validator.constraints.NotEmpty;
|
||||
|
||||
/**
|
||||
* Tenant entity with meta data that is configured globally for the entire
|
||||
@@ -45,6 +46,7 @@ public class JpaTenantMetaData extends AbstractJpaBaseEntity implements TenantMe
|
||||
|
||||
@Column(name = "tenant", nullable = false, updatable = false, length = 40)
|
||||
@Size(max = 40)
|
||||
@NotEmpty
|
||||
private String tenant;
|
||||
|
||||
@OneToOne(fetch = FetchType.LAZY)
|
||||
|
||||
Reference in New Issue
Block a user