Skip to content

Commit 90689fa

Browse files
committed
test app
1 parent e7df791 commit 90689fa

File tree

11 files changed

+509
-5
lines changed

11 files changed

+509
-5
lines changed

.gitignore

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
*.log
2-
/.classpath
3-
/.project
4-
/.settings
5-
/target
6-
/docs
2+
.classpath
3+
.project
4+
.settings
5+
target
76
/grails-db-reverse-engineer-*.zip
87
/grails-db-reverse-engineer-*.zip.sha1
98
/plugin.xml
9+
/test-app/web-app/WEB-INF/tld
1010
/web-app

test-app/application.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
app.grails.version=2.4.5
2+
app.name=test-app
3+
app.version=0.1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class BootStrap {
2+
def init = {}
3+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
grails.servlet.version = '3.0'
2+
grails.project.work.dir = 'target'
3+
grails.project.target.level = 1.7
4+
grails.project.source.level = 1.7
5+
6+
grails.plugin.location.'db-reverse-engineer' = '..'
7+
8+
grails.project.dependency.resolver = 'maven'
9+
grails.project.dependency.resolution = {
10+
inherits 'global'
11+
log 'warn'
12+
checksums true
13+
legacyResolve false
14+
15+
repositories {
16+
inherits true
17+
18+
mavenLocal()
19+
grailsCentral()
20+
mavenCentral()
21+
}
22+
23+
dependencies {
24+
compile 'mysql:mysql-connector-java:5.1.38'
25+
}
26+
27+
plugins {
28+
runtime ':hibernate:3.6.10.18'
29+
}
30+
}
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
grails.config.locations = [
2+
"classpath:${appName}-config.groovy",
3+
"file:./${appName}-config.groovy"]
4+
5+
String systemPropertyLocation = System.properties[appName + '.config.location']
6+
if (systemPropertyLocation) grails.config.locations << 'file:' + systemPropertyLocation
7+
8+
grails.controllers.defaultScope = 'singleton'
9+
grails.converters.encoding = 'UTF-8'
10+
grails.enable.native2ascii = true
11+
grails.exceptionresolver.params.exclude = ['password']
12+
grails.hibernate.cache.queries = false
13+
grails.hibernate.pass.readonly = false
14+
grails.hibernate.osiv.readonly = false
15+
grails.json.legacy.builder = false
16+
grails.logging.jul.usebridge = true
17+
grails.mime.disable.accept.header.userAgents = ['Gecko', 'WebKit', 'Presto', 'Trident']
18+
grails.mime.types = [
19+
all: '*/*',
20+
atom: 'application/atom+xml',
21+
css: 'text/css',
22+
csv: 'text/csv',
23+
form: 'application/x-www-form-urlencoded',
24+
html: ['text/html','application/xhtml+xml'],
25+
js: 'text/javascript',
26+
json: ['application/json', 'text/json'],
27+
multipartForm: 'multipart/form-data',
28+
rss: 'application/rss+xml',
29+
text: 'text/plain',
30+
hal: ['application/hal+json','application/hal+xml'],
31+
xml: ['text/xml', 'application/xml']
32+
]
33+
grails.project.groupId = appName
34+
grails.scaffolding.templates.domainSuffix = ''
35+
grails.spring.bean.packages = []
36+
grails.views.default.codec = 'html'
37+
grails {
38+
views {
39+
gsp {
40+
encoding = 'UTF-8'
41+
htmlcodec = 'xml'
42+
codecs {
43+
expression = 'html'
44+
scriptlet = 'html'
45+
taglib = 'none'
46+
staticparts = 'none'
47+
}
48+
}
49+
}
50+
}
51+
grails.web.disable.multipart = false
52+
53+
grails.dbconsole.enabled = true
54+
55+
log4j.main = {
56+
error 'org.codehaus.groovy.grails',
57+
'org.springframework',
58+
'org.hibernate',
59+
'net.sf.ehcache.hibernate'
60+
debug 'org.hibernate.SQL'
61+
debug 'grails.plugin.reveng', 'org.apache.tools.ant'
62+
}
63+
64+
environments {
65+
development {
66+
grails.plugin.reveng.packageName = 'revengtest'
67+
grails.plugin.reveng.versionColumns = [other: 'nonstandard_version_name']
68+
grails.plugin.reveng.manyToManyTables = ['user_role']
69+
grails.plugin.reveng.manyToManyBelongsTos = ['user_role': 'role', 'author_books': 'book', 'track_playlists': 'track']
70+
grails.plugin.reveng.excludeColumns = ['thing': ['ignore1', 'ignore2']]
71+
grails.plugin.reveng.excludeColumnRegexes = ['thing': ['.+regex.+']]
72+
grails.plugin.reveng.excludeColumnAntPatterns = ['thing': ['*ant*']]
73+
}
74+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
dataSource {
2+
pooled = true
3+
}
4+
hibernate {
5+
cache.use_second_level_cache = true
6+
cache.use_query_cache = false
7+
cache.region.factory_class = 'org.hibernate.cache.SingletonEhCacheRegionFactory'
8+
singleSession = true
9+
flush.mode = 'manual'
10+
format_sql = true
11+
use_sql_comments = true
12+
}
13+
14+
environments {
15+
development {
16+
dataSource {
17+
dbCreate = 'none'
18+
url = 'jdbc:mysql://localhost/reveng'
19+
driverClassName = 'com.mysql.jdbc.Driver'
20+
username = 'reveng'
21+
password = 'reveng'
22+
dialect = org.hibernate.dialect.MySQL5InnoDBDialect
23+
}
24+
}
25+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class UrlMappings {
2+
3+
static mappings = {
4+
"/$controller/$action?/$id?(.$format)?"{}
5+
}
6+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
beans = {}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
default.doesnt.match.message=Property [{0}] of class [{1}] with value [{2}] does not match the required pattern [{3}]
2+
default.invalid.url.message=Property [{0}] of class [{1}] with value [{2}] is not a valid URL
3+
default.invalid.creditCard.message=Property [{0}] of class [{1}] with value [{2}] is not a valid credit card number
4+
default.invalid.email.message=Property [{0}] of class [{1}] with value [{2}] is not a valid e-mail address
5+
default.invalid.range.message=Property [{0}] of class [{1}] with value [{2}] does not fall within the valid range from [{3}] to [{4}]
6+
default.invalid.size.message=Property [{0}] of class [{1}] with value [{2}] does not fall within the valid size range from [{3}] to [{4}]
7+
default.invalid.max.message=Property [{0}] of class [{1}] with value [{2}] exceeds maximum value [{3}]
8+
default.invalid.min.message=Property [{0}] of class [{1}] with value [{2}] is less than minimum value [{3}]
9+
default.invalid.max.size.message=Property [{0}] of class [{1}] with value [{2}] exceeds the maximum size of [{3}]
10+
default.invalid.min.size.message=Property [{0}] of class [{1}] with value [{2}] is less than the minimum size of [{3}]
11+
default.invalid.validator.message=Property [{0}] of class [{1}] with value [{2}] does not pass custom validation
12+
default.not.inlist.message=Property [{0}] of class [{1}] with value [{2}] is not contained within the list [{3}]
13+
default.blank.message=Property [{0}] of class [{1}] cannot be blank
14+
default.not.equal.message=Property [{0}] of class [{1}] with value [{2}] cannot equal [{3}]
15+
default.null.message=Property [{0}] of class [{1}] cannot be null
16+
default.not.unique.message=Property [{0}] of class [{1}] with value [{2}] must be unique
17+
18+
default.paginate.prev=Previous
19+
default.paginate.next=Next
20+
default.boolean.true=True
21+
default.boolean.false=False
22+
default.date.format=yyyy-MM-dd HH:mm:ss z
23+
default.number.format=0
24+
25+
default.created.message={0} {1} created
26+
default.updated.message={0} {1} updated
27+
default.deleted.message={0} {1} deleted
28+
default.not.deleted.message={0} {1} could not be deleted
29+
default.not.found.message={0} not found with id {1}
30+
default.optimistic.locking.failure=Another user has updated this {0} while you were editing
31+
32+
default.home.label=Home
33+
default.list.label={0} List
34+
default.add.label=Add {0}
35+
default.new.label=New {0}
36+
default.create.label=Create {0}
37+
default.show.label=Show {0}
38+
default.edit.label=Edit {0}
39+
40+
default.button.create.label=Create
41+
default.button.edit.label=Edit
42+
default.button.update.label=Update
43+
default.button.delete.label=Delete
44+
default.button.delete.confirm.message=Are you sure?
45+
46+
# Data binding errors. Use "typeMismatch.$className.$propertyName to customize (eg typeMismatch.Book.author)
47+
typeMismatch.java.net.URL=Property {0} must be a valid URL
48+
typeMismatch.java.net.URI=Property {0} must be a valid URI
49+
typeMismatch.java.util.Date=Property {0} must be a valid Date
50+
typeMismatch.java.lang.Double=Property {0} must be a valid number
51+
typeMismatch.java.lang.Integer=Property {0} must be a valid number
52+
typeMismatch.java.lang.Long=Property {0} must be a valid number
53+
typeMismatch.java.lang.Short=Property {0} must be a valid number
54+
typeMismatch.java.math.BigDecimal=Property {0} must be a valid number
55+
typeMismatch.java.math.BigInteger=Property {0} must be a valid number

0 commit comments

Comments
 (0)