Skip to content

Commit 5d25ba6

Browse files
committed
update to act-1.8.8-RC4; bump version to 1.6.0
1 parent 2510a80 commit 5d25ba6

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# act-ebean-java7 CHANGE LOG
22

3+
1.6.0 - 13/May/2018
4+
* update act to 1.8.8-RC4
5+
* Disable Ebean classpath search #21
6+
* Register global mapping filter to avoid copying ebean enhanced fields #20
7+
8+
39
1.5.3 - 02/Apr/2018
410
* update act to 1.8.5
511
* update act-sql-common to 1.3.3

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<artifactId>act-ebean-java7</artifactId>
2222
<packaging>jar</packaging>
23-
<version>1.5.4-SNAPSHOT</version>
23+
<version>1.6.0-SNAPSHOT</version>
2424

2525
<name>ACT Ebean</name>
2626
<description>Provides SQL database access through Ebean ORM library (java 7+)</description>
@@ -35,7 +35,7 @@
3535
<parent>
3636
<groupId>org.actframework</groupId>
3737
<artifactId>parent</artifactId>
38-
<version>1.8.5</version>
38+
<version>1.8.8-RC4</version>
3939
</parent>
4040

4141
<properties>

src/main/java/act/db/ebean/EbeanPlugin.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import com.avaje.ebean.TxScope;
3434
import com.avaje.ebeaninternal.api.HelpScopeTrans;
3535
import com.avaje.ebeaninternal.api.ScopeTrans;
36+
import org.osgl.OsglConfig;
3637
import osgl.version.Version;
3738

3839
import java.util.EventObject;
@@ -44,6 +45,12 @@ public class EbeanPlugin extends DbPlugin {
4445

4546
private static final ThreadLocal<ScopeTrans> txHolder = new ThreadLocal<>();
4647

48+
@Override
49+
public void register() {
50+
super.register();
51+
registerGlobalMappingFilter();
52+
}
53+
4754
@Override
4855
protected void applyTo(App app) {
4956
super.applyTo(app);
@@ -83,4 +90,9 @@ public DbService initDbService(String id, App app, Map<String, String> conf) {
8390

8491
return new EbeanService(id, app, conf);
8592
}
93+
94+
private void registerGlobalMappingFilter() {
95+
OsglConfig.addGlobalMappingFilter("starts:_ebean_");
96+
}
97+
8698
}

src/main/java/act/db/ebean/util/EbeanConfigAdaptor.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public ServerConfig adaptFrom(SqlDbServiceConfig actConfig, act.db.sql.DataSourc
6767
}
6868
}
6969

70+
config.setDisableClasspathSearch(true);
7071
return config;
7172
}
7273

0 commit comments

Comments
 (0)