File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
src/test/java/org/javawebstack/orm/test Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ void testOneWordAlreadyInPluralDoesntWork() throws ORMConfigurationException {
5353 assertFalse (query .contains ("FROM `words`" ));
5454 }
5555
56+ @ Test
57+ void testOverwrittenTableName () throws ORMConfigurationException {
58+ String query = getBaseQuery (OverwritteTableName .class );
59+ assertTrue (query .contains ("FROM `oVer_writtenValue`" ));
60+ }
61+
5662 /*
5763 * Boiler Code Reduction Funtions
5864 */
Original file line number Diff line number Diff line change 1+ package org .javawebstack .orm .test .shared .models .tablenames ;
2+
3+ import org .javawebstack .orm .Model ;
4+ import org .javawebstack .orm .annotation .Column ;
5+ import org .javawebstack .orm .annotation .Table ;
6+
7+ /**
8+ * This class overwrites the model name to a seemingly random word to test multiple cases at once.
9+ */
10+ @ Table ("oVer_writtenValue" )
11+ public class OverwritteTableName extends Model {
12+ @ Column
13+ int id ;
14+ }
You can’t perform that action at this time.
0 commit comments