Skip to content

Commit fb7343b

Browse files
authored
Merge pull request eugenp#4148 from rajat-garg/BAEL-1711-move-code-snippets
BAEL-1734 move packages from libraries to libraries-data
2 parents 5222cb2 + 7267803 commit fb7343b

31 files changed

Lines changed: 617 additions & 506 deletions

‎libraries-data/README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
- [Introduction to ORMLite](http://www.baeldung.com/ormlite)
44
- [Introduction To Kryo](http://www.baeldung.com/kryo)
55
- [Introduction to KafkaStreams in Java](http://www.baeldung.com/java-kafka-streams)
6+
- [Guide to Java Data Objects](http://www.baeldung.com/jdo)
7+
- [Intro to JDO Queries 2/2](http://www.baeldung.com/jdo-queries)
8+
- [Introduction to HikariCP](http://www.baeldung.com/hikaricp)
9+
- [Introduction to JCache](http://www.baeldung.com/jcache)
610
- [A Guide to Apache Ignite](http://www.baeldung.com/apache-ignite)
7-
- [Apache Ignite with Spring Data](http://www.baeldung.com/apache-ignite-spring-data)
11+
- [Apache Ignite with Spring Data](http://www.baeldung.com/apache-ignite-spring-data)

‎libraries-data/log4j.properties‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
log4j.rootLogger=INFO, stdout

‎libraries-data/myPersistence.xml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?><root>
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
</root>

‎libraries-data/pom.xml‎

Lines changed: 80 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,60 @@
8787
<artifactId>gson</artifactId>
8888
<version>${gson.version}</version>
8989
</dependency>
90+
<!-- Hikari CP -->
91+
<dependency>
92+
<groupId>com.zaxxer</groupId>
93+
<artifactId>HikariCP</artifactId>
94+
<version>2.7.2</version>
95+
<scope>compile</scope>
96+
</dependency>
97+
<!-- JDO -->
98+
<dependency>
99+
<groupId>org.datanucleus</groupId>
100+
<artifactId>javax.jdo</artifactId>
101+
<version>3.2.0-m7</version>
102+
</dependency>
103+
<dependency>
104+
<groupId>org.datanucleus</groupId>
105+
<artifactId>datanucleus-core</artifactId>
106+
<version>5.1.1</version>
107+
</dependency>
108+
<dependency>
109+
<groupId>org.datanucleus</groupId>
110+
<artifactId>datanucleus-api-jdo</artifactId>
111+
<version>5.1.1</version>
112+
</dependency>
113+
<dependency>
114+
<groupId>org.datanucleus</groupId>
115+
<artifactId>datanucleus-rdbms</artifactId>
116+
<version>5.1.1</version>
117+
</dependency>
118+
<dependency>
119+
<groupId>org.datanucleus</groupId>
120+
<artifactId>datanucleus-maven-plugin</artifactId>
121+
<version>5.0.2</version>
122+
</dependency>
123+
<dependency>
124+
<groupId>org.datanucleus</groupId>
125+
<artifactId>datanucleus-xml</artifactId>
126+
<version>5.0.0-release</version>
127+
</dependency>
128+
<dependency>
129+
<groupId>org.datanucleus</groupId>
130+
<artifactId>datanucleus-jdo-query</artifactId>
131+
<version>5.0.4</version>
132+
</dependency>
133+
<!-- Jcache -->
134+
<dependency>
135+
<groupId>javax.cache</groupId>
136+
<artifactId>cache-api</artifactId>
137+
<version>${cache.version}</version>
138+
</dependency>
139+
<dependency>
140+
<groupId>com.hazelcast</groupId>
141+
<artifactId>hazelcast</artifactId>
142+
<version>${hazelcast.version}</version>
143+
</dependency>
90144
</dependencies>
91145

92146
<build>
@@ -176,6 +230,29 @@
176230
</plugin>
177231
<!-- /Reladomo -->
178232

233+
<!-- JDO Plugin -->
234+
<plugin>
235+
<groupId>org.datanucleus</groupId>
236+
<artifactId>datanucleus-maven-plugin</artifactId>
237+
<version>5.0.2</version>
238+
<configuration>
239+
<api>JDO</api>
240+
<props>${basedir}/datanucleus.properties</props>
241+
<log4jConfiguration>${basedir}/log4j.properties</log4jConfiguration>
242+
<verbose>true</verbose>
243+
<fork>false</fork>
244+
<!-- Solve windows line too long error -->
245+
</configuration>
246+
<executions>
247+
<execution>
248+
<phase>process-classes</phase>
249+
<goals>
250+
<goal>enhance</goal>
251+
</goals>
252+
</execution>
253+
</executions>
254+
</plugin>
255+
179256
</plugins>
180257
</build>
181258

@@ -196,8 +273,10 @@
196273
<kafka.version>1.0.0</kafka.version>
197274
<ignite.version>2.4.0</ignite.version>
198275
<gson.version>2.8.2</gson.version>
276+
<cache.version>1.1.0</cache.version>
277+
<hazelcast.version>3.8.4</hazelcast.version>
199278
<maven-antrun-plugin.version>1.8</maven-antrun-plugin.version>
200279
<build-helper-maven-plugin.version>3.0.0</build-helper-maven-plugin.version>
201280
</properties>
202281

203-
</project>
282+
</project>

libraries/src/main/java/com/baeldung/hikaricp/DataSource.java renamed to libraries-data/src/main/java/com/baeldung/hikaricp/DataSource.java

File renamed without changes.

libraries/src/main/java/com/baeldung/hikaricp/Employee.java renamed to libraries-data/src/main/java/com/baeldung/hikaricp/Employee.java

File renamed without changes.

libraries/src/main/java/com/baeldung/hikaricp/HikariCPDemo.java renamed to libraries-data/src/main/java/com/baeldung/hikaricp/HikariCPDemo.java

File renamed without changes.

libraries/src/main/java/com/baeldung/jcache/SimpleCacheEntryListener.java renamed to libraries-data/src/main/java/com/baeldung/jcache/SimpleCacheEntryListener.java

File renamed without changes.

libraries/src/main/java/com/baeldung/jcache/SimpleCacheLoader.java renamed to libraries-data/src/main/java/com/baeldung/jcache/SimpleCacheLoader.java

File renamed without changes.

libraries/src/main/java/com/baeldung/jcache/SimpleEntryProcessor.java renamed to libraries-data/src/main/java/com/baeldung/jcache/SimpleEntryProcessor.java

File renamed without changes.

0 commit comments

Comments
 (0)