Skip to content

Commit 7072156

Browse files
persistence work
1 parent 87794f0 commit 7072156

4 files changed

Lines changed: 23 additions & 18 deletions

File tree

‎eclipse/INTEGRATION-BUILD.launch‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<stringAttribute key="M2_PROFILES" value="integration"/>
88
<listAttribute key="M2_PROPERTIES">
99
<listEntry value="target=dev"/>
10-
<listEntry value="persistenceTarget=mysql"/>
10+
<listEntry value="persistenceTarget=h2"/>
1111
</listAttribute>
1212
<stringAttribute key="M2_RUNTIME" value="C:\opt\maven\apache-maven-3.0.4"/>
1313
<booleanAttribute key="M2_SKIP_TESTS" value="false"/>

‎pom.xml‎

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,11 @@
162162

163163
<!-- persistence - query -->
164164

165-
<!-- Querydsl -->
166-
<!--(temporarily disabled) -->
167-
<!-- <dependency> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-core</artifactId> <version>${querydsl.version}</version> </dependency>
168-
<dependency> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-apt</artifactId> <version>${querydsl.version}</version> </dependency>
169-
<dependency> <groupId>com.mysema.querydsl</groupId> <artifactId>querydsl-jpa</artifactId> <version>${querydsl.version}</version> </dependency> -->
170-
171165
<!-- persistence - JPA 2 metamodel -->
172166
<dependency>
173167
<groupId>org.hibernate</groupId>
174168
<artifactId>hibernate-jpamodelgen</artifactId>
175-
<version>1.2.0.CR1</version>
169+
<version>1.2.0.Final</version>
176170
</dependency>
177171

178172
<!-- logging -->
@@ -184,7 +178,7 @@
184178
<dependency>
185179
<groupId>ch.qos.logback</groupId>
186180
<artifactId>logback-classic</artifactId>
187-
<version>1.0.0</version>
181+
<version>1.0.1</version>
188182
<scope>runtime</scope>
189183
</dependency>
190184
<dependency>
@@ -343,13 +337,15 @@
343337

344338
<!-- Querydsl - used to generate metadata -->
345339
<!--(temporarily disabled) -->
346-
<!-- <plugin> <groupId>com.mysema.maven</groupId> <artifactId>maven-apt-plugin</artifactId> <version>1.0.2</version> <executions> <execution>
347-
<phase>generate-sources</phase> <goals> <goal>process</goal> </goals> <configuration> <outputDirectory>target/generated-sources</outputDirectory>
348-
<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor> </configuration> </execution> </executions> </plugin> -->
340+
<!-- <plugin> <groupId>com.mysema.maven</groupId> <artifactId>maven-apt-plugin</artifactId>
341+
<version>1.0.2</version> <executions> <execution> <phase>generate-sources</phase>
342+
<goals> <goal>process</goal> </goals> <configuration> <outputDirectory>target/generated-sources</outputDirectory>
343+
<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor> </configuration>
344+
</execution> </executions> </plugin> -->
349345

350346
<!-- JPA 2 metamodel -->
351347
<!-- -->
352-
<plugin>
348+
<!-- <plugin>
353349
<groupId>org.bsc.maven</groupId>
354350
<artifactId>maven-processor-plugin</artifactId>
355351
<version>2.0.5</version>
@@ -380,18 +376,19 @@
380376
</goals>
381377
<configuration>
382378
<sources>
383-
<source>src/main/java/org/rest/persistence/metamodel</source>
379+
<source>src/main/java/org/sec/model</source>
384380
</sources>
385381
</configuration>
386382
</execution>
387383
</executions>
388-
</plugin>
384+
</plugin> -->
389385
</plugins>
390386

391387
<!-- generated by m2e -->
392388
<pluginManagement>
393389
<plugins>
394-
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
390+
<!--This plugin's configuration is used to store Eclipse m2e settings
391+
only. It has no influence on the Maven build itself. -->
395392
<plugin>
396393
<groupId>org.eclipse.m2e</groupId>
397394
<artifactId>lifecycle-mapping</artifactId>

‎src/main/resources/persistence-mysql.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Connection information
22
jdbc.driverClassName=com.mysql.jdbc.Driver
3-
jdbc.url=jdbc:mysql://localhost:3306/rest_01
3+
jdbc.url=jdbc:mysql://localhost:3306/rest
44

55

66
# hibernate.X

‎src/test/java/org/rest/test/suite/IntegrationRESTTestSuite.java‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,15 @@
66
import org.rest.security.SecurityRESTIntegrationTest;
77

88
@RunWith( Suite.class )
9-
@SuiteClasses( { IntegrationClientRESTTestSuite.class, SecurityRESTIntegrationTest.class, IntegrationDiscoverabilityRESTTestSuite.class, IntegrationLogicRESTTestSuite.class, IntegrationPaginationRESTTestSuite.class, IntegrationSortRESTTestSuite.class, IntegrationMimeRESTTestSuite.class } )
9+
@SuiteClasses( {// @formatter:off
10+
IntegrationClientRESTTestSuite.class,
11+
IntegrationDiscoverabilityRESTTestSuite.class,
12+
IntegrationLogicRESTTestSuite.class,
13+
IntegrationPaginationRESTTestSuite.class,
14+
IntegrationSortRESTTestSuite.class,
15+
IntegrationMimeRESTTestSuite.class,
16+
SecurityRESTIntegrationTest.class
17+
} ) // @formatter:on
1018
public final class IntegrationRESTTestSuite{
1119
//
1220
}

0 commit comments

Comments
 (0)