Skip to content

Commit 7737239

Browse files
committed
Change the default value of the "doma.entity.field.prefix" option.
Now, all field names of the entity types don't have any prefix. If you want the old prefixed names, set `$` to the "doma.entity.field.prefix" option.
1 parent 94813aa commit 7737239

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doma-processor/src/main/java/org/seasar/doma/internal/apt/Options.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public static class Constants {
192192

193193
public static final String DEFAULT_DAO_SUFFIX = "Impl";
194194

195-
public static final String DEFAULT_ENTITY_FIELD_PREFIX = "$";
195+
public static final String DEFAULT_ENTITY_FIELD_PREFIX = "none";
196196

197197
public static final String DEFAULT_CONFIG_PATH = "doma.compile.config";
198198

doma-processor/src/test/java/org/seasar/doma/internal/apt/processor/entity/EntityProcessorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class EntityProcessorTest extends CompilerSupport {
2929
void beforeEach() {
3030
addOption(
3131
"-Adoma.test=true",
32+
"-Adoma.entity.field.prefix=$",
3233
"-Adoma.domain.converters=org.seasar.doma.internal.apt.processor.entity.DomainConvertersProvider");
3334
}
3435

0 commit comments

Comments
 (0)