spring-jpa-persistence, using gradle
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Fri, 23 Dec 2016 19:54:45 +0000 (20:54 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Fri, 23 Dec 2016 19:54:45 +0000 (20:54 +0100)
25 files changed:
SpringJava/Gradle/spring-jpa-persistence/build.gradle [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/gradle.properties [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/settings.gradle [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/context/StaticContextHolder.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/context/UsernameThreadContext.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/converters/LocalDateTimeAttributeConverter.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/converters/OffsetDateTimeAttributeConverter.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/Ad.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/AdDescription.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevision.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevisionListener.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/package-info.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/specifications/AdSpectifications.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/repository/AdDescriptionRepository.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/repository/AdRepository.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/resources/jpa.properties [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/configuration.xml [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/datasource-configuration.xml [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/jpa-configuration.xml [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/changeLogs.xml [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/ddlChangelog.xml [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/dmlChangelog.xml [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/liquibase.xml [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/test/java/de/spring/example/persitence/domain/AdTest.java [new file with mode: 0644]
SpringJava/Gradle/spring-jpa-persistence/src/test/resources/datasource-test-configuration.xml [new file with mode: 0644]

diff --git a/SpringJava/Gradle/spring-jpa-persistence/build.gradle b/SpringJava/Gradle/spring-jpa-persistence/build.gradle
new file mode 100644 (file)
index 0000000..172c202
--- /dev/null
@@ -0,0 +1,118 @@
+group 'de.spring.jpa'
+version '1.0-SNAPSHOT'
+
+
+buildscript {
+    repositories {
+        mavenCentral()
+        maven { url 'https://plugins.gradle.org/m2/' }
+    }
+    dependencies {
+        classpath "gradle.plugin.com.ewerk.gradle.plugins:querydsl-plugin:1.0.7"
+    }
+}
+
+apply plugin: 'java'
+apply plugin: 'eclipse'
+apply plugin: 'idea'
+apply plugin: 'com.ewerk.gradle.plugins.querydsl'
+
+
+targetCompatibility = 1.8
+sourceCompatibility = 1.8
+
+
+repositories {
+    mavenCentral()
+}
+
+dependencies {
+    // 1/3 Required dependency for log4j 2 with slf4j: binding between log4j2 and slf4j
+    compile('org.apache.logging.log4j:log4j-slf4j-impl:2.7')
+    // 2/3 Required dependency for log4j 2 with slf4j: log4j 2 maven plugin (it is the log4j 2 implementation)
+    compile('org.apache.logging.log4j:log4j-core:2.7')
+    // 3/3 Required dependency for getting rid of commons logging. This is the BRIDGE (no binding) between Jakarta Commons Logging (used by Spring)
+    // and whatever I am using for logging (in this case I am using log4j 2) See: http://www.slf4j.org/legacy.html
+    // We need exclusions in every dependency using Jakarta Commons Logging (see Spring dependencies below)
+    compile('org.slf4j:jcl-over-slf4j:1.7.22')
+
+
+    compile('org.springframework:spring-context:4.3.5.RELEASE') {
+        exclude group: 'commons-logging', module: 'commons-logging'
+    }
+    compile('javax.inject:javax.inject:1')
+    compile('cglib:cglib:3.2.4')
+
+
+    // Required JPA dependencies with hibernate
+    compile('org.springframework:spring-orm:4.3.5.RELEASE')
+    compile('org.springframework.data:spring-data-jpa:1.10.5.RELEASE')
+    // Included dependency in spring-data-jpa
+    // compile('org.hibernate:hibernate-entitymanager:')
+
+
+    // Auditory using Hibernate Envers
+    compile('org.springframework.data:spring-data-envers:1.0.5.RELEASE')
+    // Included dependency in spring-data-envers
+    // compile('org.hibernate:hibernate-envers:5.2.5.Final')
+
+
+    // Required by spring-context for using JSR-303. See LocalValidatorFactoryBean
+    // in rest-config.xml
+    compile('javax.validation:validation-api:1.1.0.Final')
+    compile('org.hibernate:hibernate-validator:5.3.4.Final')
+
+
+    // Jackson JSON Processor, required by spring-webmvc. See messageConverters
+    // in rest-config.xml
+    compile('com.fasterxml.jackson.core:jackson-databind:2.8.5')
+
+
+    //  Loading data base in run time
+    compile("org.liquibase:liquibase-core:3.5.3")
+
+
+    // Jackson Java time support
+    compile('com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.7.4')
+
+    
+    // Using Querydsl
+    // Included in spring-data-jpa
+    // compile('com.querydsl:querydsl-apt:4.1.3')
+    // compile('com.querydsl:querydsl-jpa:4.1.3')
+
+
+    // Unit tests
+    testCompile('junit:junit:4.12')
+    testCompile('org.mockito:mockito-core:2.4.1')
+    testCompile('org.springframework:spring-test:4.3.5.RELEASE')
+
+
+    // Integration tests
+    // Either using H2
+    testCompile('com.h2database:h2:1.4.193')
+    // or MYSQL with docker :)
+    testCompile('mysql:mysql-connector-java:6.0.5')
+}
+
+
+test {
+    testLogging {
+        events "PASSED", "FAILED", "SKIPPED"
+    }
+}
+
+
+querydsl {
+  library = 'com.querydsl:querydsl-apt:4.1.3'
+  querydslSourcesDir = "${buildDir}/generated-sources/querydsl"
+  jpa = true
+}
+
+
+jar {
+    manifest {
+        attributes 'Implementation-Title': 'Spring JPA Persistence, gradle example', 'Implementation-Version': version
+    }
+}
+
diff --git a/SpringJava/Gradle/spring-jpa-persistence/gradle.properties b/SpringJava/Gradle/spring-jpa-persistence/gradle.properties
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/SpringJava/Gradle/spring-jpa-persistence/settings.gradle b/SpringJava/Gradle/spring-jpa-persistence/settings.gradle
new file mode 100644 (file)
index 0000000..62c25f1
--- /dev/null
@@ -0,0 +1 @@
+rootProject.name = 'spring-jpa-persistence'
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/context/StaticContextHolder.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/context/StaticContextHolder.java
new file mode 100644 (file)
index 0000000..b117739
--- /dev/null
@@ -0,0 +1,39 @@
+package de.spring.example.context;
+
+import javax.inject.Named;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.beans.BeansException;
+import org.springframework.beans.factory.BeanFactory;
+import org.springframework.beans.factory.BeanFactoryAware;
+
+/**
+ * JPA Entity classes do not allow you to inject beans.
+ * I tried to use this class for injecting beans in them but it did not either work :(
+ * No way of injecting beans in JPA Entity classes :( 
+ */
+@Named("staticContextHolder")
+public class StaticContextHolder implements BeanFactoryAware {
+       private static final Logger LOGGER = LoggerFactory.getLogger(StaticContextHolder.class);
+       
+       private static BeanFactory CONTEXT;
+       
+       public StaticContextHolder() {
+               
+       }
+       
+       public static Object getBean(String bean) {
+               return CONTEXT.getBean(bean);
+       }
+       
+       @Override
+       public void setBeanFactory(BeanFactory beanFactory) throws BeansException {
+               if (CONTEXT != null) {
+                       LOGGER.warn("CONTEXT is not null!!!");
+               }
+
+               CONTEXT = beanFactory;
+       }
+
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/context/UsernameThreadContext.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/context/UsernameThreadContext.java
new file mode 100644 (file)
index 0000000..19e3ec0
--- /dev/null
@@ -0,0 +1,28 @@
+package de.spring.example.context;
+
+import org.springframework.util.Assert;
+
+/**
+ * I had to implement this class in a static way because JPA Entity objects do not allow you
+ * to inject beans. StaticContextHolder did not either work :(
+ * No way of injecting beans in JPA Entity classes :( 
+ */
+public class UsernameThreadContext {
+       public static final String USERNAME_HEADER = "USERNAME";
+       
+       private static final ThreadLocal<String> contextHolder = new ThreadLocal<>();
+       
+       public static final void setUsername(String username) {
+               Assert.notNull(username);
+               
+               contextHolder.set(username);
+       }
+       
+       public static final String getUsername() {
+               return contextHolder.get();
+       }
+       
+       public static final void clearUsername() {
+               contextHolder.remove();
+       }
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/converters/LocalDateTimeAttributeConverter.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/converters/LocalDateTimeAttributeConverter.java
new file mode 100644 (file)
index 0000000..3dc89a8
--- /dev/null
@@ -0,0 +1,34 @@
+package de.spring.example.persistence.converters;
+
+import java.sql.Timestamp;
+import java.time.LocalDateTime;
+
+import javax.persistence.AttributeConverter;
+import javax.persistence.Converter;
+
+@Converter(autoApply = true)
+public class LocalDateTimeAttributeConverter implements AttributeConverter<LocalDateTime, Timestamp> {
+
+       @Override
+       public Timestamp convertToDatabaseColumn(LocalDateTime localDateTime) {
+               Timestamp timestamp = null;
+               
+               if (localDateTime != null) {
+                       timestamp = Timestamp.valueOf(localDateTime);
+               }
+               
+               return timestamp;
+       }
+
+       @Override
+       public LocalDateTime convertToEntityAttribute(Timestamp sqlTimestamp) {
+               LocalDateTime localDateTime = null;
+               
+               if (sqlTimestamp != null) {
+                       localDateTime = sqlTimestamp.toLocalDateTime();
+               }
+               
+               return localDateTime;
+       }
+
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/converters/OffsetDateTimeAttributeConverter.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/converters/OffsetDateTimeAttributeConverter.java
new file mode 100644 (file)
index 0000000..30ab6bb
--- /dev/null
@@ -0,0 +1,39 @@
+package de.spring.example.persistence.converters;
+
+import java.sql.Timestamp;
+import java.time.LocalDateTime;
+import java.time.OffsetDateTime;
+import java.time.ZoneId;
+import java.time.ZonedDateTime;
+
+import javax.persistence.AttributeConverter;
+import javax.persistence.Converter;
+
+@Converter(autoApply = true)
+public class OffsetDateTimeAttributeConverter implements AttributeConverter<OffsetDateTime, Timestamp> {
+
+       @Override
+       public Timestamp convertToDatabaseColumn(OffsetDateTime offsetDateTime) {
+               Timestamp timestamp = null;
+               
+               if (offsetDateTime != null) {
+                       timestamp = Timestamp.valueOf(offsetDateTime.toLocalDateTime());
+               }
+               
+               return timestamp;
+       }
+
+       @Override
+       public OffsetDateTime convertToEntityAttribute(Timestamp sqlTimestamp) {
+               OffsetDateTime offsetDateTime = null;
+               
+               if (sqlTimestamp != null) {
+                       final LocalDateTime localDateTime = sqlTimestamp.toLocalDateTime();
+                       final ZonedDateTime zonedDateTime = localDateTime.atZone(ZoneId.systemDefault());
+                       offsetDateTime = zonedDateTime.toOffsetDateTime();
+               }
+               
+               return offsetDateTime;
+       }
+
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/Ad.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/Ad.java
new file mode 100644 (file)
index 0000000..dbfb184
--- /dev/null
@@ -0,0 +1,161 @@
+package de.spring.example.persistence.domain;
+
+import java.io.Serializable;
+import java.time.OffsetDateTime;
+import java.util.Set;
+
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Convert;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+//import javax.persistence.NamedNativeQueries;
+//import javax.persistence.NamedNativeQuery;
+//import javax.persistence.NamedQueries;
+//import javax.persistence.NamedQuery;
+import javax.persistence.OneToMany;
+import javax.persistence.Table;
+import javax.validation.constraints.Max;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+
+import org.hibernate.envers.AuditJoinTable;
+import org.hibernate.envers.AuditMappedBy;
+import org.hibernate.envers.Audited;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.fasterxml.jackson.annotation.JsonIdentityInfo;
+import com.fasterxml.jackson.annotation.ObjectIdGenerators;
+
+import de.spring.example.persistence.converters.OffsetDateTimeAttributeConverter;
+
+@Entity
+//@Audited(withModifiedFlag=true)
+@Table(name="AD", schema="mybatis_example")
+@JsonIdentityInfo(generator=ObjectIdGenerators.IntSequenceGenerator.class, property="jsonId")
+// 1. Named query is JPL. It is portable.
+// 2. Instead of annotating the domain class we should be using @Query annotation at the query method
+//    because it should be cleaner :)
+//    So you'd better use @Query.
+//http://docs.spring.io/spring-data/jpa/docs/current/reference/html/#jpa.query-methods.at-query
+//See: de.spring.persistence.example.repository.AdRepository 
+//@NamedQueries(
+//             {
+//                     @NamedQuery(
+//                     name="Ad.findByIdQuery",
+//                     query="select a from Ad a where a.id = :id)
+//             }
+//     
+//)
+// 1. Native query IS NOT JPL. It is not portable and it is written directly in the native language
+//    of the store. We can use special features at the cost of portability.
+// 2. Instead of annotating the domain class we should be using @Query annotation at the query method
+//       because it should be cleaner :)
+//    So you'd better use @Query.
+//    http://docs.spring.io/spring-data/jpa/docs/current/reference/html/#jpa.query-methods.at-query
+//    See: de.spring.persistence.example.repository.AdRepository 
+//@NamedNativeQueries(
+//     {
+//             @NamedNativeQuery(
+//                     name="Ad.findByIdNativeQuery",
+//                     query="SELECT * FROM ad WHERE ad.id = :id",
+//                     resultClass=Ad.class)
+//     }               
+//)
+public class Ad implements Serializable {
+
+       @Audited(withModifiedFlag=true)
+       @Id
+       @GeneratedValue(strategy=GenerationType.IDENTITY)
+       @Column(name="ID", updatable=false, nullable=false)
+       private Long id;
+       
+       // NO WAY OF AUDITING THIS COLUMN :(. AM I MESSING SOMETHING UP WITH JPA AND RELATIONS BETWEEN TABLES?
+       @AuditJoinTable(name="AD_DESCRIPTION_AUDITED")
+       @AuditMappedBy(mappedBy="ad", positionMappedBy="id")
+       @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL)
+       @JoinColumn(name = "AD_ID", nullable = false)
+       private Set<AdDescription> adDescriptions;
+       
+       @Audited(withModifiedFlag=true)
+       @Max(60)
+       @Column(name="COMPANY_ID")
+       private Long companyId;
+       
+       @Audited(withModifiedFlag=true)
+       @Max(40)
+       @Column(name="COMPANY_CATEG_ID")
+       private Long companyCategId;
+       
+       @Audited(withModifiedFlag=true)
+       @Size(min=2, max=255)
+       @Column(name="AD_MOBILE_IMAGE")
+       private String adMobileImage;
+
+       @Audited(withModifiedFlag=true)
+       @NotNull
+       @Convert(converter=OffsetDateTimeAttributeConverter.class)
+       @Column(name="CREATED_AT", nullable=false)
+       @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ssZ")
+       private OffsetDateTime createdAt;
+       
+       @Audited(withModifiedFlag=true)
+       @NotNull
+       @Convert(converter=OffsetDateTimeAttributeConverter.class)
+       @Column(name="UPDATED_AT", nullable = false)
+       @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ssZ")
+       private OffsetDateTime updatedAt;
+
+       // It will be used by JPA when filling the property fields with data coming from data base.
+       protected Ad() {
+
+       }
+
+       // It will be used by my code (for example by Unit Tests)
+       public Ad(Long id, Set<AdDescription> adDescriptions, Long companyId, Long companyCategId, String adMobileImage,
+                       OffsetDateTime createdAt, OffsetDateTime updatedAt) {
+               this.id = id;
+               this.adDescriptions = adDescriptions;
+               this.companyId = companyId;
+               this.companyCategId = companyCategId;
+               this.adMobileImage = adMobileImage;
+               this.createdAt = createdAt;
+               this.updatedAt = updatedAt;
+       }
+
+       /**
+        * WARNING: JPA REQUIRES GETTERS!!!
+        */
+       
+       public Long getId() {
+               return id;
+       }
+
+       public Set<AdDescription> getAdDescriptions() {
+               return adDescriptions;
+       }
+
+       public Long getCompanyId() {
+               return companyId;
+       }
+
+       public Long getCompanyCategId() {
+               return companyCategId;
+       }
+
+       public String getAdMobileImage() {
+               return adMobileImage;
+       }
+
+       public OffsetDateTime getCreatedAt() {
+               return createdAt;
+       }
+
+       public OffsetDateTime getUpdatedAt() {
+               return updatedAt;
+       }
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/AdDescription.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/AdDescription.java
new file mode 100644 (file)
index 0000000..0b07605
--- /dev/null
@@ -0,0 +1,112 @@
+package de.spring.example.persistence.domain;
+
+import java.io.Serializable;
+
+import javax.persistence.CascadeType;
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.FetchType;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.JoinColumn;
+import javax.persistence.ManyToOne;
+import javax.persistence.Table;
+import javax.validation.constraints.Max;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Size;
+
+import org.hibernate.envers.Audited;
+
+import com.fasterxml.jackson.annotation.JsonIdentityInfo;
+import com.fasterxml.jackson.annotation.ObjectIdGenerators;
+
+@Entity
+@Audited
+@Table(name="AD_DESCRIPTION", schema="mybatis_example")
+@JsonIdentityInfo(generator=ObjectIdGenerators.IntSequenceGenerator.class, property="jsonId")
+public class AdDescription implements Serializable {
+
+       @Id
+       @GeneratedValue(strategy=GenerationType.IDENTITY)
+       @Column(name="ID", updatable=false, nullable=false)
+       private Long id;
+       
+       @ManyToOne(fetch=FetchType.LAZY, cascade = CascadeType.ALL, optional=true)
+       @JoinColumn(name="AD_ID", nullable=false, updatable = false, insertable = false, referencedColumnName="ID")
+       private Ad ad;
+       
+       @NotNull
+       @Max(60)
+       @Column(name="LANGUAGE_ID")
+       private Long languageId;
+       
+       @NotNull
+       @Size(min=2, max=255)
+       @Column(name="AD_NAME")
+       private String adName;
+
+       @NotNull
+       @Size(min=2, max=255)
+       @Column(name="AD_DESCRIPTION")
+       private String adDescription;
+       
+       @NotNull
+       @Size(min=2, max=500)
+       @Column(name="AD_MOBILE_TEXT")
+       private String adMobileText;
+       
+       @NotNull
+       @Size(min=2, max=3000)
+       @Column(name="AD_LINK")
+       private String adLink;
+       
+       // It will be used by JPA when filling the property fields with data coming from data base.
+       protected AdDescription() {
+
+       }
+
+       // It will be used by my code (for example by Unit Tests)
+       public AdDescription(Long id, Ad ad, Long languageId, String adName, String adDescription,
+                       String adMobileText, String adLink) {
+               this.id = id;
+               this.ad = ad;
+               this.languageId = languageId;
+               this.adName = adName;
+               this.adDescription = adDescription;
+               this.adMobileText = adMobileText;
+               this.adLink = adLink;
+       }
+       
+       /**
+        * WARNING: JPA REQUIRES GETTERS!!!
+        */
+
+       public Long getId() {
+               return id;
+       }
+
+       public Ad getAd() {
+               return ad;
+       }
+
+       public Long getLanguageId() {
+               return languageId;
+       }
+
+       public String getAdName() {
+               return adName;
+       }
+
+       public String getAdDescription() {
+               return adDescription;
+       }
+
+       public String getAdMobileText() {
+               return adMobileText;
+       }
+
+       public String getAdLink() {
+               return adLink;
+       }
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevision.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevision.java
new file mode 100644 (file)
index 0000000..a119bca
--- /dev/null
@@ -0,0 +1,71 @@
+package de.spring.example.persistence.domain.audit;
+
+import java.util.Date;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.GeneratedValue;
+import javax.persistence.GenerationType;
+import javax.persistence.Id;
+import javax.persistence.Table;
+import javax.persistence.Temporal;
+import javax.persistence.TemporalType;
+
+/** import org.hibernate.envers.DefaultRevisionEntity; **/
+import org.hibernate.envers.RevisionEntity;
+import org.hibernate.envers.RevisionNumber;
+import org.hibernate.envers.RevisionTimestamp;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+@Entity
+@RevisionEntity(MyCustomRevisionListener.class)
+@Table(name="CUSTOM_REVISION", schema="mybatis_example")
+public class MyCustomRevision /** extends DefaultRevisionEntity **/ {
+       
+       @Id
+       @GeneratedValue(strategy=GenerationType.IDENTITY)
+       @Column(name="ID", updatable=false, nullable=false)
+       @RevisionNumber
+       // BE CAREFUL!!!! spring-data-envers JUST WORKS (I couldn't make it work with anything else) WITH Integer. NOT WITH Long :(
+       private Integer id;
+       
+       @Column(name="REVISION_DATE")
+       @Temporal(TemporalType.TIMESTAMP)
+       @RevisionTimestamp
+       @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
+       private Date revisionDate;
+       
+       @Column(name="USERNAME")
+       private String username;
+       
+       // It will be used by JPA when filling the property fields with data coming from data base.
+       protected MyCustomRevision() {
+               
+       }
+       
+       // It will be used by my code (for example by Unit Tests)
+       public MyCustomRevision(String username) {
+               this.username = username;
+       }
+
+       /**
+        * WARNING: JPA REQUIRES GETTERS!!!
+        */
+       
+       public Integer getId() {
+               return id;
+       }
+       
+    public Date getRevisionDate() {
+       return revisionDate;
+    }
+       
+    public String getUsername() {
+       return username;
+    }
+    
+    public void setUsername(String username) {
+       this.username = username;
+    }
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevisionListener.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/MyCustomRevisionListener.java
new file mode 100644 (file)
index 0000000..ff5f57e
--- /dev/null
@@ -0,0 +1,33 @@
+package de.spring.example.persistence.domain.audit;
+
+import org.hibernate.envers.RevisionListener;
+
+import de.spring.example.context.UsernameThreadContext;
+
+public class MyCustomRevisionListener implements RevisionListener {    
+       
+       // It will be used by Hibernate.
+       protected MyCustomRevisionListener() {
+               
+       }
+       
+       @Override
+       public void newRevision(Object revisionEntity) {
+               MyCustomRevision myCustomRevision = (MyCustomRevision) revisionEntity;
+               
+               final String username = getSafeUsername();
+               myCustomRevision.setUsername(username);
+               
+       }
+       
+       private String getSafeUsername() {
+               String userName = UsernameThreadContext.getUsername();
+               
+               if (userName == null) {
+                       userName = "NO_USER";
+               }
+               
+               return userName;
+       }
+
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/package-info.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/audit/package-info.java
new file mode 100644 (file)
index 0000000..137b183
--- /dev/null
@@ -0,0 +1,6 @@
+@QueryEntities({DefaultRevisionEntity.class})
+package de.spring.example.persistence.domain.audit;
+
+
+import org.hibernate.envers.DefaultRevisionEntity;
+import com.querydsl.core.annotations.QueryEntities;
\ No newline at end of file
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/specifications/AdSpectifications.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/domain/specifications/AdSpectifications.java
new file mode 100644 (file)
index 0000000..2cadb54
--- /dev/null
@@ -0,0 +1,62 @@
+package de.spring.example.persistence.domain.specifications;
+
+import java.time.LocalDate;
+
+//import javax.persistence.criteria.CriteriaBuilder;
+//import javax.persistence.criteria.CriteriaQuery;
+//import javax.persistence.criteria.Predicate;
+//import javax.persistence.criteria.Root;
+
+import org.springframework.data.jpa.domain.Specification;
+
+import de.spring.example.persistence.domain.Ad;
+
+public class AdSpectifications {
+       
+//     public static Specification<Ad> createdToday() {
+//             return new Specification<Ad>() {
+//
+//                     @Override
+//                     public Predicate toPredicate(Root<Ad> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
+//                             final LocalDate date = LocalDate.now();
+//                             
+//                             return cb.equal(root.get("createdAt"), date);
+//                     }
+//
+//             };
+//             
+//     }
+       
+       /**
+        * The same using lambda expressions
+        */
+       public static Specification<Ad> createdToday() {
+               return (root, query, cb) -> {
+                       final LocalDate date = LocalDate.now();
+                       
+                       return cb.equal(root.get("createdAt"), date);
+        };
+       }
+       
+//     public static Specification<Ad> mobileImage(String image) {
+//             return new Specification<Ad>() {
+//
+//                     @Override
+//                     public Predicate toPredicate(Root<Ad> root, CriteriaQuery<?> query, CriteriaBuilder cb) {
+//                             
+//                             return cb.equal(root.get("adMobileImage"), image);
+//                     }
+//
+//             };
+//             
+//     }
+       
+       /**
+        * The same using lambda expressions
+        */
+       public static Specification<Ad> mobileImage(String image) {
+               return (root, query, cb) -> {
+                       return cb.equal(root.get("adMobileImage"), image);
+        };
+       }
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/repository/AdDescriptionRepository.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/repository/AdDescriptionRepository.java
new file mode 100644 (file)
index 0000000..e865253
--- /dev/null
@@ -0,0 +1,25 @@
+package de.spring.example.persistence.repository;
+
+import org.springframework.data.domain.Page;
+import org.springframework.data.domain.Pageable;
+import org.springframework.data.repository.PagingAndSortingRepository;
+import org.springframework.data.repository.history.RevisionRepository;
+
+import de.spring.example.persistence.domain.Ad;
+import de.spring.example.persistence.domain.AdDescription;
+
+/**
+ * By default <code>org.springframework.data.jpa.repository.support.SimpleJpaRepository</code>
+ * will be the implementation for this interface.
+ * 
+ * Be careful with <code>@Transactional</code>. SimpleJpaRepository has annotated methods.
+ *
+ */
+public interface AdDescriptionRepository extends
+               PagingAndSortingRepository<AdDescription, Long>,
+               /** https://github.com/spring-projects/spring-data-envers/pull/45 QueryDslPredicateExecutor<AdDescription>, **/
+               RevisionRepository<AdDescription, Long, Integer> {
+
+       // Custom Query method (useful when the offered methods by PagingAndSortingRepository are not enough)
+       Page<AdDescription> findByAd(Ad ad, Pageable pageable);
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/repository/AdRepository.java b/SpringJava/Gradle/spring-jpa-persistence/src/main/java/de/spring/example/persistence/repository/AdRepository.java
new file mode 100644 (file)
index 0000000..9e99ee3
--- /dev/null
@@ -0,0 +1,32 @@
+package de.spring.example.persistence.repository;
+
+import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
+import org.springframework.data.jpa.repository.Query;
+import org.springframework.data.repository.PagingAndSortingRepository;
+import org.springframework.data.repository.history.RevisionRepository;
+import org.springframework.data.repository.query.Param;
+
+import de.spring.example.persistence.domain.Ad;
+
+/**
+ * By default <code>org.springframework.data.jpa.repository.support.SimpleJpaRepository</code>
+ * will be the implementation for this interface.
+ * 
+ * Be careful with <code>@Transactional</code>. SimpleJpaRepository has annotated methods.
+ *
+ */
+public interface AdRepository extends
+               PagingAndSortingRepository<Ad, Long>,
+               JpaSpecificationExecutor<Ad>,
+               RevisionRepository<Ad, Long, Integer> {
+       
+       // Named Native Query (using the native language of the store) It is not portable.
+       // See de.spring.persistence.example.domain.Ad
+       @Query(value="SELECT * FROM ad WHERE ad.id = :id", nativeQuery=true)
+       Ad findByIdNativeQuery(@Param("id") Long id);
+       
+       // Named Query (using JPL) It is portable.
+       // See de.spring.persistence.example.domain.Ad
+       @Query("select a from Ad a where a.id = :id")
+       Ad findByIdQuery(@Param("id") Long id);
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/jpa.properties b/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/jpa.properties
new file mode 100644 (file)
index 0000000..9f628d3
--- /dev/null
@@ -0,0 +1,2 @@
+jpa.dialect=org.hibernate.dialect.MySQL5Dialect
+jpa.show_sql=false
\ No newline at end of file
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/configuration.xml b/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/configuration.xml
new file mode 100644 (file)
index 0000000..5e4c00d
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:context="http://www.springframework.org/schema/context"
+       xsi:schemaLocation="
+               http://www.springframework.org/schema/beans
+               http://www.springframework.org/schema/beans/spring-beans.xsd
+        http://www.springframework.org/schema/context
+        http://www.springframework.org/schema/context/spring-context.xsd">
+        
+    <context:annotation-config />
+    
+       <context:component-scan base-package="de.spring.example.context"/>
+       
+       <context:property-placeholder location="classpath:jpa.properties" />
+       
+</beans>
\ No newline at end of file
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/datasource-configuration.xml b/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/datasource-configuration.xml
new file mode 100644 (file)
index 0000000..6b5500c
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xmlns:util="http://www.springframework.org/schema/util"\r
+       xmlns:tx="http://www.springframework.org/schema/tx"\r
+       xmlns:jee="http://www.springframework.org/schema/jee"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/beans\r
+        http://www.springframework.org/schema/beans/spring-beans.xsd\r
+        http://www.springframework.org/schema/util\r
+        http://www.springframework.org/schema/util/spring-util.xsd\r
+        http://www.springframework.org/schema/tx \r
+        http://www.springframework.org/schema/tx/spring-tx.xsd\r
+        http://www.springframework.org/schema/jee\r
+        http://www.springframework.org/schema/jee/spring-jee.xsd">\r
+\r
+       \r
+       <!-- enable the configuration of transactional behavior based on annotations -->\r
+    <tx:annotation-driven transaction-manager="transactionManager"/>\r
+\r
+\r
+       <!-- Using external provided datasource (in my case the one from Tomcat) -->\r
+       <jee:jndi-lookup id="dataSource" jndi-name="jdbc/example" expected-type="javax.sql.DataSource"/>\r
+    \r
+    \r
+       <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">\r
+               <property name="entityManagerFactory" ref="entityManagerFactory" />\r
+       </bean>\r
+       \r
+       <import resource="liquibase/liquibase.xml" />\r
+       \r
+</beans>\r
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/jpa-configuration.xml b/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/jpa-configuration.xml
new file mode 100644 (file)
index 0000000..bcdd8a3
--- /dev/null
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xmlns:context="http://www.springframework.org/schema/context"\r
+       xmlns:util="http://www.springframework.org/schema/util"\r
+       xmlns:jpa="http://www.springframework.org/schema/data/jpa"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/beans\r
+        http://www.springframework.org/schema/beans/spring-beans.xsd\r
+        http://www.springframework.org/schema/context\r
+        http://www.springframework.org/schema/context/spring-context.xsd\r
+        http://www.springframework.org/schema/util\r
+        http://www.springframework.org/schema/util/spring-util.xsd\r
+        http://www.springframework.org/schema/data/jpa \r
+        http://www.springframework.org/schema/data/jpa/spring-jpa.xsd">\r
+\r
+       <context:annotation-config />\r
+\r
+    <context:component-scan base-package="de.spring.example.persistence" />\r
+\r
+       <jpa:repositories entity-manager-factory-ref="entityManagerFactory"\r
+               base-package="de.spring.example.persistence.**.repository"\r
+               transaction-manager-ref="transactionManager"\r
+               factory-class="org.springframework.data.envers.repository.support.EnversRevisionRepositoryFactoryBean" />\r
+        \r
+       <bean id="entityManagerFactory"\r
+               class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">\r
+               <property name="dataSource" ref="dataSource" />\r
+               <property name="jpaVendorAdapter">\r
+                       <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">\r
+                               <property name="databasePlatform" value="${jpa.dialect}" />\r
+                               <property name="showSql" value="${jpa.show_sql}" />\r
+                       </bean>\r
+               </property>\r
+               <property name="packagesToScan" value="de.spring.example.persistence.**.domain" />\r
+               <property name="jpaProperties">\r
+               <props>\r
+                       <!--\r
+                               I used this configuration for creating the AUDIT tables the first time.\r
+                               Then I had to make some custom configurations but in general I managed to\r
+                               use the tables auto created by hibernate.\r
+               <prop key="hibernate.hbm2ddl.auto">create</prop>\r
+               -->\r
+               <prop key="org.hibernate.envers.audit_table_suffix">_AUDITED</prop>\r
+               <prop key="org.hibernate.envers.revision_field_name">REVISION</prop>\r
+               <prop key="org.hibernate.envers.revision_type_field_name">REVISION_TYPE</prop>\r
+               <prop key="org.hibernate.envers.store_data_at_delete">true</prop>\r
+               <prop key="org.hibernate.envers.audit_strategy">org.hibernate.envers.strategy.ValidityAuditStrategy</prop>\r
+               <prop key="org.hibernate.envers.audit_strategy_validity_end_rev_field_name">REVISION_END</prop>\r
+               <prop key="org.hibernate.envers.audit_strategy_validity_store_revend_timestamp">true</prop>\r
+               <prop key="org.hibernate.envers.audit_strategy_validity_revend_timestamp_field_name">REVISION_END_TIMESTAMP</prop>\r
+               <prop key="org.hibernate.envers.modified_flag_suffix">_MODIFIED</prop>  \r
+               </props>\r
+       </property>\r
+       </bean>\r
+\r
+\r
+\r
+</beans>\r
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/changeLogs.xml b/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/changeLogs.xml
new file mode 100644 (file)
index 0000000..b1af5e1
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<databaseChangeLog
+        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
+        http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
+
+       <!--
+               We do not need this configuration because our driver take cares of creating
+               mybatis_example if it does not exist because we are using these options:
+               
+               MYSQL: createDatabaseIfNotExist
+               H2: INIT=create schema if not exists mybatis_example
+               
+               :)
+               
+       <changeset author="gustavo" id="1">
+               <sql>
+                       create schema if not exists mybatis_example
+               </sql>
+       </changeset>
+       -->
+
+    <!-- DDL -->
+    <include file="spring-configuration/liquibase/ddlChangelog.xml" />
+
+    <!--
+    <changeSet author="gustavo" id="2">
+       Instead of using liquibase for loading data (dmlChangelog.xml), we could be using SQL statements.
+       
+        <sqlFile path="liquibase/dml.sql" stripComments="true"/>
+    </changeSet>
+    -->
+
+    
+    <!-- DML -->
+    <include file="spring-configuration/liquibase/dmlChangelog.xml" />
+
+</databaseChangeLog>
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/ddlChangelog.xml b/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/ddlChangelog.xml
new file mode 100644 (file)
index 0000000..e972618
--- /dev/null
@@ -0,0 +1,184 @@
+<?xml version="1.1" encoding="UTF-8" standalone="no"?>
+<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
+
+    <!--
+        Liquibase update database with new change sets. Examples.
+
+    <changeSet author="gustavo test" id="1" labels="VERSIONA">
+        <sql>
+            CREATE TABLE VERSIONA (id SERIAL, company_id BIGINT, company_categ_id BIGINT, ad_gps BLOB, ad_mobile_image varchar(255), created_at TIMESTAMP NOT NULL, updated_at TIMESTAMP NOT NULL, PRIMARY KEY (id)) ENGINE=InnoDB, DEFAULT CHARSET=utf8, COLLATE=utf8_unicode_ci
+        </sql>
+    </changeSet>
+
+    <changeSet author="gustavo test" id="2" labels="VERSIONB">
+        <sql>
+            CREATE TABLE VERSIONB (id SERIAL, company_id BIGINT, company_categ_id BIGINT, ad_gps BLOB, ad_mobile_image varchar(255), created_at TIMESTAMP NOT NULL, updated_at TIMESTAMP NOT NULL, PRIMARY KEY (id)) ENGINE=InnoDB, DEFAULT CHARSET=utf8, COLLATE=utf8_unicode_ci
+        </sql>
+    </changeSet>
+
+    <changeSet author="gustavo test" id="3" labels="VERSIONC">
+        <sql>
+            CREATE TABLE VERSIONC (id SERIAL, company_id BIGINT, company_categ_id BIGINT, ad_gps BLOB, ad_mobile_image varchar(255), created_at TIMESTAMP NOT NULL, updated_at TIMESTAMP NOT NULL, PRIMARY KEY (id)) ENGINE=InnoDB, DEFAULT CHARSET=utf8, COLLATE=utf8_unicode_ci
+        </sql>
+    </changeSet>
+    -->
+
+    <changeSet author="gustavo (generated)" id="1469119656864-1" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createTable tableName="AD">
+            <column autoIncrement="true" name="ID" type="BIGINT">
+                <constraints primaryKey="true"/>
+            </column>
+            <column name="COMPANY_ID" type="BIGINT"/>
+            <column name="COMPANY_CATEG_ID" type="BIGINT"/>
+            <column name="AD_GPS" type="BLOB"/>
+            <column name="AD_MOBILE_IMAGE" type="VARCHAR(255)"/>
+            <column defaultValueComputed="CURRENT_TIMESTAMP" name="CREATED_AT" type="TIMESTAMP">
+                <constraints nullable="false"/>
+            </column>
+            <column defaultValue="0000-00-00 00:00:00" name="UPDATED_AT" type="TIMESTAMP">
+                <constraints nullable="false"/>
+            </column>
+        </createTable>
+        <modifySql dbms="mysql">
+            <append value="ENGINE=InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci"/>
+        </modifySql>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-2" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createTable tableName="AD_AUDITED">
+            <column name="ID" type="BIGINT">
+                <constraints nullable="false"/>
+            </column>
+            <column name="REVISION" type="BIGINT">
+                <constraints nullable="false"/>
+            </column>
+            <column name="REVISION_TYPE" type="TINYINT(3)"/>
+            <column name="REVISION_END" type="BIGINT"/>
+            <column name="REVISION_END_TIMESTAMP" type="datetime"/>
+            <column name="AD_MOBILE_IMAGE" type="VARCHAR(255)"/>
+            <column name="adMobileImage_MODIFIED" type="BIT(1)"/>
+            <column name="COMPANY_CATEG_ID" type="BIGINT"/>
+            <column name="companyCategId_MODIFIED" type="BIT(1)"/>
+            <column name="COMPANY_ID" type="BIGINT"/>
+            <column name="companyId_MODIFIED" type="BIT(1)"/>
+            <column name="CREATED_AT" type="datetime"/>
+            <column name="createdAt_MODIFIED" type="BIT(1)"/>
+            <column name="UPDATED_AT" type="datetime"/>
+            <column name="updatedAt_MODIFIED" type="BIT(1)"/>
+            <column name="adDescriptions_MODIFIED" type="BIT(1)"/>
+        </createTable>
+        <modifySql dbms="mysql">
+            <append value="ENGINE=InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci"/>
+        </modifySql>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-3" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createTable tableName="AD_DESCRIPTION">
+            <column autoIncrement="true" name="ID" type="BIGINT">
+                <constraints primaryKey="true"/>
+            </column>
+            <column name="LANGUAGE_ID" type="BIGINT">
+                <constraints nullable="false"/>
+            </column>
+            <column name="AD_ID" type="BIGINT"/>
+            <column name="AD_NAME" type="VARCHAR(255)">
+                <constraints nullable="false"/>
+            </column>
+            <column name="AD_DESCRIPTION" type="LONGTEXT"/>
+            <column name="AD_MOBILE_TEXT" type="VARCHAR(500)">
+                <constraints nullable="false"/>
+            </column>
+            <column name="AD_LINK" type="VARCHAR(3000)">
+                <constraints nullable="false"/>
+            </column>
+        </createTable>
+        <modifySql dbms="mysql">
+            <append value="ENGINE=InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci"/>
+        </modifySql>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-4" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createTable tableName="AD_DESCRIPTION_AUDITED">
+            <column name="ID" type="BIGINT">
+                <constraints nullable="false"/>
+            </column>
+            <column name="REVISION" type="BIGINT">
+                <constraints nullable="false"/>
+            </column>
+            <column name="REVISION_TYPE" type="TINYINT(3)"/>
+            <column name="REVISION_END" type="BIGINT"/>
+            <column name="REVISION_END_TIMESTAMP" type="datetime"/>
+            <column name="AD_DESCRIPTION" type="VARCHAR(255)"/>
+            <column name="AD_LINK" type="VARCHAR(255)"/>
+            <column name="AD_MOBILE_TEXT" type="VARCHAR(255)"/>
+            <column name="AD_NAME" type="VARCHAR(255)"/>
+            <column name="LANGUAGE_ID" type="BIGINT"/>
+            <column name="AD_ID" type="BIGINT"/>
+        </createTable>
+        <modifySql dbms="mysql">
+            <append value="ENGINE=InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci"/>
+        </modifySql>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-5" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createTable tableName="CUSTOM_REVISION">
+            <column autoIncrement="true" name="ID" type="BIGINT">
+                <constraints primaryKey="true"/>
+            </column>
+            <column name="REVISION_DATE" type="TIMESTAMP">
+                <constraints nullable="false"/>
+            </column>
+            <column name="USERNAME" type="VARCHAR(255)"/>
+        </createTable>
+        <modifySql dbms="mysql">
+            <append value="ENGINE=InnoDB CHARSET=utf8 COLLATE utf8_unicode_ci"/>
+        </modifySql>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-6" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createTable tableName="con_test">
+            <column name="a" type="CHAR(1)"/>
+        </createTable>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-7" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <addPrimaryKey columnNames="ID, REVISION" constraintName="PRIMARY" tableName="AD_AUDITED"/>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-8" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <addPrimaryKey columnNames="ID, REVISION" constraintName="PRIMARY" tableName="AD_DESCRIPTION_AUDITED"/>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-10" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createIndex indexName="IND_01_AD_DESCRIPTION" tableName="AD_DESCRIPTION">
+            <column name="AD_ID"/>
+        </createIndex>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-11" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createIndex indexName="IND_01_AD_DESCRIPTION_AUDITED" tableName="AD_DESCRIPTION_AUDITED">
+            <column name="REVISION"/>
+        </createIndex>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-12" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createIndex indexName="IND_01_AD_AUDITED" tableName="AD_AUDITED">
+            <column name="REVISION"/>
+        </createIndex>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-13" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createIndex indexName="IND_02_AD_AUDITED" tableName="AD_AUDITED">
+            <column name="REVISION_END"/>
+        </createIndex>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-14" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <createIndex indexName="IND_02_AD_DESCRIPTION_AUDITED" tableName="AD_DESCRIPTION_AUDITED">
+            <column name="REVISION_END"/>
+        </createIndex>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-15" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <addForeignKeyConstraint baseColumnNames="AD_ID" baseTableName="AD_DESCRIPTION" constraintName="FK_01_AD_DESCRIPTION" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="ID" referencedTableName="AD"/>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-16" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <addForeignKeyConstraint baseColumnNames="REVISION" baseTableName="AD_DESCRIPTION_AUDITED" constraintName="FK_01_AD_DESCRIPTION_AUDITED" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="ID" referencedTableName="CUSTOM_REVISION"/>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-17" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <addForeignKeyConstraint baseColumnNames="REVISION" baseTableName="AD_AUDITED" constraintName="FK_01_AD_AUDITED" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="ID" referencedTableName="CUSTOM_REVISION"/>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-18" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <addForeignKeyConstraint baseColumnNames="REVISION_END" baseTableName="AD_AUDITED" constraintName="FK_02_AD_AUDITED" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="ID" referencedTableName="CUSTOM_REVISION"/>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1469119656864-19" objectQuotingStrategy="QUOTE_ALL_OBJECTS">
+        <addForeignKeyConstraint baseColumnNames="REVISION_END" baseTableName="AD_DESCRIPTION_AUDITED" constraintName="FK_02_AD_DESCRIPTION_AUDITED" deferrable="false" initiallyDeferred="false" onDelete="NO ACTION" onUpdate="NO ACTION" referencedColumnNames="ID" referencedTableName="CUSTOM_REVISION"/>
+    </changeSet>
+</databaseChangeLog>
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/dmlChangelog.xml b/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/dmlChangelog.xml
new file mode 100644 (file)
index 0000000..8d10e3a
--- /dev/null
@@ -0,0 +1,1960 @@
+<?xml version="1.1" encoding="UTF-8" standalone="no"?>
+<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
+    <changeSet author="gustavo (generated)" id="1468267830107-1">
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="1"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_mobile_image" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-17 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-17 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="2"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-17 23:29:10.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-17 23:29:10.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="3"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-27 17:13:46.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-27 17:13:47.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="4"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-27 17:14:39.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-27 17:15:27.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="5"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-27 23:38:47.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-27 23:38:47.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="6"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-27 23:39:53.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-27 23:39:53.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="7"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-27 23:39:54.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-27 23:39:54.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="8"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-27 23:40:21.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-27 23:40:21.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="9"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-27 23:40:21.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-27 23:40:21.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="10"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-27 23:42:34.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-27 23:42:34.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="11"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-27 23:42:34.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-27 23:42:34.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="12"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:07:34.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:07:34.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="13"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:07:35.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:07:35.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="14"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:10:20.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:10:20.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="15"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="16"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="17"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="18"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="19"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="20"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:10:21.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="21"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:19:06.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:19:06.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="23"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:20:08.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:20:08.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="25"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:31:11.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:31:11.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="26"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:31:12.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:31:12.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="27"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="mobileImage.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-28 00:31:12.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-28 00:31:12.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="28"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="29"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="30"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="31"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="32"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="33"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="34"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="35"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="36"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="37"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="38"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="39"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="40"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="41"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="42"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="43"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="44"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="45"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="46"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="47"/>
+            <column name="COMPANY_ID"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bitch.jpg"/>
+            <column name="CREATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+            <column name="UPDATED_AT" valueDate="2015-08-31 02:54:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="52"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 12:38:12.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 12:38:12.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="53"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 12:40:56.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 12:40:56.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="54"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 12:46:02.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 12:46:02.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="55"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 12:46:13.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 12:46:13.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="56"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 12:52:20.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 12:52:20.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="57"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 12:53:07.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 12:53:07.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="58"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 12:57:01.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 12:57:01.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="59"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 12:57:08.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 12:57:08.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="60"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:07:24.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:07:24.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="61"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:07:24.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:07:24.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="62"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:07:24.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:07:24.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="63"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:07:24.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:07:24.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="64"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:16:12.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:16:12.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="65"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:16:12.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:16:12.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="66"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:16:12.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:16:12.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="67"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:16:12.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:16:12.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="68"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:22:18.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:22:18.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="69"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:22:19.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:22:19.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="70"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:22:19.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:22:19.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="71"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:22:19.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:22:19.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="72"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:25:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:25:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="73"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:26:58.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:26:58.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="74"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:27:18.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:27:18.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="75"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 13:29:10.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 13:29:10.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="76"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 14:06:00.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 14:06:00.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="77"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 14:06:00.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 14:06:00.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="78"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 14:06:00.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 14:06:00.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="79"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 14:06:00.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 14:06:00.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="80"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 18:04:43.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 18:04:43.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="81"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 18:05:02.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 18:05:02.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="82"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 18:11:22.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 18:11:23.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="85"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 18:26:26.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 18:26:27.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="86"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 19:09:14.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 19:09:14.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="87"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 19:10:03.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 19:10:03.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="88"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 20:33:52.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 20:33:52.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="89"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 20:35:11.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 20:35:11.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="90"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 20:35:46.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 20:35:46.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="91"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-10 20:35:49.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-10 20:35:49.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="93"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="94"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="95"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="96"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="97"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="98"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="99"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="100"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 16:57:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="101"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:01:35.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:01:35.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="102"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:01:37.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:01:37.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="103"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:04:43.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:04:43.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="104"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:04:54.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:04:54.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="105"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:42:48.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:42:48.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="106"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:42:50.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:42:50.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="107"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:43:04.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:43:04.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="108"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:43:06.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:43:06.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="109"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:47:20.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:47:20.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="110"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:47:22.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:47:22.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="111"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:47:29.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:47:29.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="112"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:47:31.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:47:31.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="113"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:50:01.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:50:01.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="114"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:50:03.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:50:03.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="115"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:50:09.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:50:09.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="116"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 17:50:13.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 17:50:13.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="117"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="118"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="119"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="120"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="121"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="122"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="123"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="124"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:26.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="125"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:38.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:38.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="126"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="updatedBildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:41.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:41.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="127"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:46.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:46.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="128"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:47.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:47.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="129"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildOne.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:16:55.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:16:55.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="130"/>
+            <column name="COMPANY_ID" valueNumeric="3"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildTwo.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:21:48.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:21:48.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="131"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildThree.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:22:17.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:22:17.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="132"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="200"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bildFour.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-04-24 18:22:19.0"/>
+            <column name="UPDATED_AT" valueDate="2016-04-24 18:22:19.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="133"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="134"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="135"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="136"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="137"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="138"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="140"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="141"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="142"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="143"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="144"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="145"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="146"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="147"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="148"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="149"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="150"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="151"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="152"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="153"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="154"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2014-12-17 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-12-17 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="155"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="156"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="157"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="158"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="159"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="160"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="161"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="162"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="163"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="164"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="165"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="166"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="167"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="168"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="169"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="170"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="171"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="172"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="173"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="174"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="175"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="176"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 22:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 22:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="177"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="178"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="179"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="180"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="181"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="182"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="191"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="192"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="193"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="194"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="195"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="197"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="198"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="199"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="200"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="201"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="202"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="203"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="204"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="205"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="206"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="207"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="208"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="209"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="210"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="211"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="212"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="213"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-03 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-03 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="214"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-10 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-10 23:27:36.0"/>
+        </insert>
+        <insert tableName="AD">
+            <column name="ID" valueNumeric="215"/>
+            <column name="COMPANY_ID" valueNumeric="2"/>
+            <column name="COMPANY_CATEG_ID" valueNumeric="40"/>
+            <column name="AD_GPS"/>
+            <column name="AD_MOBILE_IMAGE" value="bild.jpg"/>
+            <column name="CREATED_AT" valueDate="2016-07-10 23:27:36.0"/>
+            <column name="UPDATED_AT" valueDate="2014-07-10 23:27:36.0"/>
+        </insert>
+    </changeSet>
+    <changeSet author="gustavo (generated)" id="1468267830107-2">
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="6"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="7"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="8"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="9"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="10"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="11"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="12"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="13"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="14"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="15"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="16"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="207"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="17"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="208"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="18"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="209"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="19"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="210"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="20"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="211"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="21"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="212"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="22"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="213"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="23"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="214"/>
+            <column name="AD_name" value="zapatillas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre zapatillas"/>
+            <column name="AD_mobile_text" value="zapatillas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="24"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="214"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="25"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="215"/>
+            <column name="AD_name" value="zapatillas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre zapatillas"/>
+            <column name="AD_mobile_text" value="zapatillas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+        <insert tableName="AD_DESCRIPTION">
+            <column name="ID" valueNumeric="26"/>
+            <column name="LANGUAGE_ID" valueNumeric="20"/>
+            <column name="AD_ID" valueNumeric="215"/>
+            <column name="AD_name" value="babuchas"/>
+            <column name="AD_DESCRIPTION" value="anuncio sobre babuchas"/>
+            <column name="AD_mobile_text" value="babuchas en oferta muy buenas"/>
+            <column name="AD_LINK" value="http://gumartinm.name"/>
+        </insert>
+    </changeSet>
+</databaseChangeLog>
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/liquibase.xml b/SpringJava/Gradle/spring-jpa-persistence/src/main/resources/spring-configuration/liquibase/liquibase.xml
new file mode 100644 (file)
index 0000000..705fc46
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:context="http://www.springframework.org/schema/context"
+       xsi:schemaLocation="
+               http://www.springframework.org/schema/beans
+               http://www.springframework.org/schema/beans/spring-beans.xsd
+        http://www.springframework.org/schema/context
+        http://www.springframework.org/schema/context/spring-context.xsd">
+        
+       <bean id="commonsLiquibase" class="liquibase.integration.spring.SpringLiquibase">
+       <property name="dataSource" ref="dataSource" />
+        <property name="changeLog" value="classpath:/spring-configuration/liquibase/changeLogs.xml" />
+        <property name="defaultSchema" value="mybatis_example" />
+    </bean>
+
+       
+</beans>
\ No newline at end of file
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/test/java/de/spring/example/persitence/domain/AdTest.java b/SpringJava/Gradle/spring-jpa-persistence/src/test/java/de/spring/example/persitence/domain/AdTest.java
new file mode 100644 (file)
index 0000000..eae39d3
--- /dev/null
@@ -0,0 +1,62 @@
+package de.spring.example.persitence.domain;
+
+import static org.junit.Assert.assertEquals;
+
+import java.time.OffsetDateTime;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.junit.Test;
+
+import de.spring.example.persistence.domain.Ad;
+import de.spring.example.persistence.domain.AdDescription;
+
+public class AdTest {
+       // Ad
+       public static final Long AD_ID = 66L;
+       public static final Long COMPANY_ID = 2L;
+       public static final Long COMPANY_CATEG_ID = 3L;
+       public static final String AD_MOBILE_IMAGE = "slippers.jpg";
+       public static final OffsetDateTime CREATED_AT = OffsetDateTime.now().minusDays(1);
+       public static final OffsetDateTime UPDATED_AT = OffsetDateTime.now();
+
+       // AdDescription
+       public static final Long AD_DESCRIPTION_ID = 99L;
+       public static final Long LANGUAGE_ID = 3L;
+       public static final String AD_NAME = "Slippers";
+       public static final String AD_DESCRIPTION = "Slippers";
+       public static final String AD_MOBILE_TEXT = "Buy it now!";
+       public static final String AD_LINK = "http://gumartinm.name";
+       public static final Set<AdDescription> AD_DESCRIPTIONS = createAdDescriptions();
+       
+
+       @Test
+       public void whenCallingConstructorWithParametersThenCreateObject() {
+               Ad ad = createAd();
+               
+               assertEquals(ad.getAdDescriptions(), AD_DESCRIPTIONS);
+               assertEquals(ad.getAdMobileImage(), AD_MOBILE_IMAGE);
+               assertEquals(ad.getCompanyCategId(), COMPANY_CATEG_ID);
+               assertEquals(ad.getCreatedAt(), CREATED_AT);
+               assertEquals(ad.getUpdatedAt(), UPDATED_AT);
+               assertEquals(ad.getId(), AD_ID);
+       }
+       
+       private static final Ad createAd() {    
+               return new Ad(AD_ID, AD_DESCRIPTIONS, COMPANY_ID, COMPANY_CATEG_ID, AD_MOBILE_IMAGE,
+                               CREATED_AT, UPDATED_AT);
+       }
+       
+       private static final AdDescription createAdDescription() {
+               return new AdDescription(AD_DESCRIPTION_ID, null, LANGUAGE_ID, AD_NAME, AD_DESCRIPTION,
+                               AD_MOBILE_TEXT, AD_LINK);
+       }
+       
+       private static final Set<AdDescription> createAdDescriptions() {
+               AdDescription adDescription = createAdDescription();
+               Set<AdDescription> adDescriptions = new HashSet<>();
+               adDescriptions.add(adDescription);
+               
+               return adDescriptions;
+       }
+}
diff --git a/SpringJava/Gradle/spring-jpa-persistence/src/test/resources/datasource-test-configuration.xml b/SpringJava/Gradle/spring-jpa-persistence/src/test/resources/datasource-test-configuration.xml
new file mode 100644 (file)
index 0000000..68cd61f
--- /dev/null
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xmlns:util="http://www.springframework.org/schema/util"\r
+       xmlns:tx="http://www.springframework.org/schema/tx"\r
+       xmlns:jee="http://www.springframework.org/schema/jee"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/beans\r
+        http://www.springframework.org/schema/beans/spring-beans.xsd\r
+        http://www.springframework.org/schema/util\r
+        http://www.springframework.org/schema/util/spring-util.xsd\r
+        http://www.springframework.org/schema/tx \r
+        http://www.springframework.org/schema/tx/spring-tx.xsd\r
+        http://www.springframework.org/schema/jee\r
+        http://www.springframework.org/schema/jee/spring-jee.xsd">\r
+\r
+       \r
+       <!-- \r
+               In this way we can not use all the available options for H2.\r
+               \r
+               Because of that I will be using the dataSource bean where I can choose as many options\r
+               as I want for H2.\r
+    <jdbc:embedded-database id="dataSource" type="H2" />\r
+       -->\r
+       \r
+       <!-- \r
+               1. There are two beans with the same id "dataSource"\r
+                  One declared in datasource-configuration.xml\r
+                  Another one declared in datasource-test-configuration.xml\r
+               2. Both beans are declared in different XML files.\r
+               3. Because there are in different XML files Spring does not complain about having duplicate beans.\r
+               4. Because files in src/test will be loaded in class path after files in src/main this bean will\r
+                  override the one declared in datasource-configuration.xml when running JUnit Tests :)\r
+        -->\r
+       <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">\r
+               <property name="driverClassName" value="org.h2.Driver" />\r
+               <property name="url" value="jdbc:h2:mem:mybatis_example;INIT=create schema if not exists mybatis_example\;SET SCHEMA mybatis_example;MODE=DB2;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE" />\r
+               <property name="username" value="mybatis" />\r
+               <property name="password" value="" />\r
+       </bean>\r
+       \r
+</beans>\r