forked from acreeger/elasticsearch-grails-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adam Creeger
committed
Jul 31, 2011
0 parents
commit 28b400d
Showing
69 changed files
with
13,867 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<classpath> | ||
<classpathentry kind="src" path="src/java"/> | ||
<classpathentry kind="src" path="src/groovy"/> | ||
<classpathentry kind="src" path="grails-app/conf"/> | ||
<classpathentry kind="src" path="grails-app/controllers"/> | ||
<classpathentry kind="src" path="grails-app/domain"/> | ||
<classpathentry kind="src" path="grails-app/services"/> | ||
<classpathentry kind="src" path="grails-app/taglib"/> | ||
<classpathentry kind="src" path="test/integration"/> | ||
<classpathentry kind="src" path="test/unit"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||
<classpathentry kind="con" path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/> | ||
<classpathentry kind="output" path="web-app/WEB-INF/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>cafe-centro</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>com.springsource.sts.grails.core.nature</nature> | ||
<nature>org.eclipse.jdt.groovy.core.groovyNature</nature> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#Created by grails | ||
eclipse.preferences.version=1 | ||
groovy.dont.generate.class.files=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#Grails Metadata file | ||
#Sun Jul 31 15:31:42 PDT 2011 | ||
app.grails.version=1.3.7 | ||
app.name=cafe-centro | ||
app.servlet.version=2.4 | ||
app.version=0.1 | ||
plugins.hibernate=1.3.7 | ||
plugins.tomcat=1.3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class BootStrap { | ||
|
||
def init = { servletContext -> | ||
} | ||
def destroy = { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
grails.project.class.dir = "target/classes" | ||
grails.project.test.class.dir = "target/test-classes" | ||
grails.project.test.reports.dir = "target/test-reports" | ||
//grails.project.war.file = "target/${appName}-${appVersion}.war" | ||
grails.project.dependency.resolution = { | ||
// inherit Grails' default dependencies | ||
inherits("global") { | ||
// uncomment to disable ehcache | ||
// excludes 'ehcache' | ||
} | ||
log "warn" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' | ||
repositories { | ||
grailsPlugins() | ||
grailsHome() | ||
grailsCentral() | ||
|
||
// uncomment the below to enable remote dependency resolution | ||
// from public Maven repositories | ||
//mavenLocal() | ||
//mavenCentral() | ||
//mavenRepo "http://snapshots.repository.codehaus.org" | ||
//mavenRepo "http://repository.codehaus.org" | ||
//mavenRepo "http://download.java.net/maven/2/" | ||
//mavenRepo "http://repository.jboss.com/maven2/" | ||
} | ||
dependencies { | ||
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. | ||
|
||
// runtime 'mysql:mysql-connector-java:5.1.13' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// locations to search for config files that get merged into the main config | ||
// config files can either be Java properties files or ConfigSlurper scripts | ||
|
||
// grails.config.locations = [ "classpath:${appName}-config.properties", | ||
// "classpath:${appName}-config.groovy", | ||
// "file:${userHome}/.grails/${appName}-config.properties", | ||
// "file:${userHome}/.grails/${appName}-config.groovy"] | ||
|
||
// if(System.properties["${appName}.config.location"]) { | ||
// grails.config.locations << "file:" + System.properties["${appName}.config.location"] | ||
// } | ||
|
||
grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination | ||
grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format | ||
grails.mime.use.accept.header = false | ||
grails.mime.types = [ html: ['text/html','application/xhtml+xml'], | ||
xml: ['text/xml', 'application/xml'], | ||
text: 'text/plain', | ||
js: 'text/javascript', | ||
rss: 'application/rss+xml', | ||
atom: 'application/atom+xml', | ||
css: 'text/css', | ||
csv: 'text/csv', | ||
all: '*/*', | ||
json: ['application/json','text/json'], | ||
form: 'application/x-www-form-urlencoded', | ||
multipartForm: 'multipart/form-data' | ||
] | ||
|
||
// URL Mapping Cache Max Size, defaults to 5000 | ||
//grails.urlmapping.cache.maxsize = 1000 | ||
|
||
// The default codec used to encode data with ${} | ||
grails.views.default.codec = "none" // none, html, base64 | ||
grails.views.gsp.encoding = "UTF-8" | ||
grails.converters.encoding = "UTF-8" | ||
// enable Sitemesh preprocessing of GSP pages | ||
grails.views.gsp.sitemesh.preprocess = true | ||
// scaffolding templates configuration | ||
grails.scaffolding.templates.domainSuffix = 'Instance' | ||
|
||
// Set to false to use the new Grails 1.2 JSONBuilder in the render method | ||
grails.json.legacy.builder = false | ||
// enabled native2ascii conversion of i18n properties files | ||
grails.enable.native2ascii = true | ||
// whether to install the java.util.logging bridge for sl4j. Disable for AppEngine! | ||
grails.logging.jul.usebridge = true | ||
// packages to include in Spring bean scanning | ||
grails.spring.bean.packages = [] | ||
|
||
// request parameters to mask when logging exceptions | ||
grails.exceptionresolver.params.exclude = ['password'] | ||
|
||
// set per-environment serverURL stem for creating absolute links | ||
environments { | ||
production { | ||
grails.serverURL = "http://www.changeme.com" | ||
} | ||
development { | ||
grails.serverURL = "http://localhost:8080/${appName}" | ||
} | ||
test { | ||
grails.serverURL = "http://localhost:8080/${appName}" | ||
} | ||
|
||
} | ||
|
||
// log4j configuration | ||
log4j = { | ||
// Example of changing the log pattern for the default console | ||
// appender: | ||
// | ||
//appenders { | ||
// console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n') | ||
//} | ||
|
||
error 'org.codehaus.groovy.grails.web.servlet', // controllers | ||
'org.codehaus.groovy.grails.web.pages', // GSP | ||
'org.codehaus.groovy.grails.web.sitemesh', // layouts | ||
'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping | ||
'org.codehaus.groovy.grails.web.mapping', // URL mapping | ||
'org.codehaus.groovy.grails.commons', // core / classloading | ||
'org.codehaus.groovy.grails.plugins', // plugins | ||
'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration | ||
'org.springframework', | ||
'org.hibernate', | ||
'net.sf.ehcache.hibernate' | ||
|
||
warn 'org.mortbay.log' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
dataSource { | ||
pooled = true | ||
driverClassName = "org.hsqldb.jdbcDriver" | ||
username = "sa" | ||
password = "" | ||
} | ||
hibernate { | ||
cache.use_second_level_cache = true | ||
cache.use_query_cache = true | ||
cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider' | ||
} | ||
// environment specific settings | ||
environments { | ||
development { | ||
dataSource { | ||
dbCreate = "create-drop" // one of 'create', 'create-drop','update' | ||
url = "jdbc:hsqldb:mem:devDB" | ||
} | ||
} | ||
test { | ||
dataSource { | ||
dbCreate = "update" | ||
url = "jdbc:hsqldb:mem:testDb" | ||
} | ||
} | ||
production { | ||
dataSource { | ||
dbCreate = "update" | ||
url = "jdbc:hsqldb:file:prodDb;shutdown=true" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class UrlMappings { | ||
|
||
static mappings = { | ||
"/$controller/$action?/$id?"{ | ||
constraints { | ||
// apply constraints here | ||
} | ||
} | ||
|
||
"/"(view:"/index") | ||
"500"(view:'/error') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Place your Spring DSL code here | ||
beans = { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.cafe-centro | ||
|
||
class Artist { | ||
|
||
static constraints = { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.cafe-centro | ||
|
||
class Event { | ||
|
||
static constraints = { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.cafe-centro | ||
|
||
class Venue { | ||
|
||
static constraints = { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
default.doesnt.match.message=Property [{0}] of class [{1}] with value [{2}] does not match the required pattern [{3}] | ||
default.invalid.url.message=Property [{0}] of class [{1}] with value [{2}] is not a valid URL | ||
default.invalid.creditCard.message=Property [{0}] of class [{1}] with value [{2}] is not a valid credit card number | ||
default.invalid.email.message=Property [{0}] of class [{1}] with value [{2}] is not a valid e-mail address | ||
default.invalid.range.message=Property [{0}] of class [{1}] with value [{2}] does not fall within the valid range from [{3}] to [{4}] | ||
default.invalid.size.message=Property [{0}] of class [{1}] with value [{2}] does not fall within the valid size range from [{3}] to [{4}] | ||
default.invalid.max.message=Property [{0}] of class [{1}] with value [{2}] exceeds maximum value [{3}] | ||
default.invalid.min.message=Property [{0}] of class [{1}] with value [{2}] is less than minimum value [{3}] | ||
default.invalid.max.size.message=Property [{0}] of class [{1}] with value [{2}] exceeds the maximum size of [{3}] | ||
default.invalid.min.size.message=Property [{0}] of class [{1}] with value [{2}] is less than the minimum size of [{3}] | ||
default.invalid.validator.message=Property [{0}] of class [{1}] with value [{2}] does not pass custom validation | ||
default.not.inlist.message=Property [{0}] of class [{1}] with value [{2}] is not contained within the list [{3}] | ||
default.blank.message=Property [{0}] of class [{1}] cannot be blank | ||
default.not.equal.message=Property [{0}] of class [{1}] with value [{2}] cannot equal [{3}] | ||
default.null.message=Property [{0}] of class [{1}] cannot be null | ||
default.not.unique.message=Property [{0}] of class [{1}] with value [{2}] must be unique | ||
|
||
default.paginate.prev=Previous | ||
default.paginate.next=Next | ||
default.boolean.true=True | ||
default.boolean.false=False | ||
default.date.format=yyyy-MM-dd HH:mm:ss z | ||
default.number.format=0 | ||
|
||
default.created.message={0} {1} created | ||
default.updated.message={0} {1} updated | ||
default.deleted.message={0} {1} deleted | ||
default.not.deleted.message={0} {1} could not be deleted | ||
default.not.found.message={0} not found with id {1} | ||
default.optimistic.locking.failure=Another user has updated this {0} while you were editing | ||
|
||
default.home.label=Home | ||
default.list.label={0} List | ||
default.add.label=Add {0} | ||
default.new.label=New {0} | ||
default.create.label=Create {0} | ||
default.show.label=Show {0} | ||
default.edit.label=Edit {0} | ||
|
||
default.button.create.label=Create | ||
default.button.edit.label=Edit | ||
default.button.update.label=Update | ||
default.button.delete.label=Delete | ||
default.button.delete.confirm.message=Are you sure? | ||
|
||
# Data binding errors. Use "typeMismatch.$className.$propertyName to customize (eg typeMismatch.Book.author) | ||
typeMismatch.java.net.URL=Property {0} must be a valid URL | ||
typeMismatch.java.net.URI=Property {0} must be a valid URI | ||
typeMismatch.java.util.Date=Property {0} must be a valid Date | ||
typeMismatch.java.lang.Double=Property {0} must be a valid number | ||
typeMismatch.java.lang.Integer=Property {0} must be a valid number | ||
typeMismatch.java.lang.Long=Property {0} must be a valid number | ||
typeMismatch.java.lang.Short=Property {0} must be a valid number | ||
typeMismatch.java.math.BigDecimal=Property {0} must be a valid number | ||
typeMismatch.java.math.BigInteger=Property {0} must be a valid number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
default.doesnt.match.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] overholder ikke mønsteret [{3}] | ||
default.invalid.url.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] er ikke en gyldig URL | ||
default.invalid.creditCard.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] er ikke et gyldigt kreditkortnummer | ||
default.invalid.email.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] er ikke en gyldig e-mail adresse | ||
default.invalid.range.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] ligger ikke inden for intervallet fra [{3}] til [{4}] | ||
default.invalid.size.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] ligger ikke inden for størrelsen fra [{3}] til [{4}] | ||
default.invalid.max.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] overstiger den maksimale værdi [{3}] | ||
default.invalid.min.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] er under den minimale værdi [{3}] | ||
default.invalid.max.size.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] overstiger den maksimale størrelse på [{3}] | ||
default.invalid.min.size.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] er under den minimale størrelse på [{3}] | ||
default.invalid.validator.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] overholder ikke den brugerdefinerede validering | ||
default.not.inlist.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] findes ikke i listen [{3}] | ||
default.blank.message=Feltet [{0}] i klassen [{1}] kan ikke være tom | ||
default.not.equal.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] må ikke være [{3}] | ||
default.null.message=Feltet [{0}] i klassen [{1}] kan ikke være null | ||
default.not.unique.message=Feltet [{0}] i klassen [{1}] som har værdien [{2}] skal være unik | ||
|
||
default.paginate.prev=Forrige | ||
default.paginate.next=Næste | ||
default.boolean.true=Sand | ||
default.boolean.false=Falsk | ||
default.date.format=yyyy-MM-dd HH:mm:ss z | ||
default.number.format=0 | ||
|
||
default.created.message={0} {1} oprettet | ||
default.updated.message={0} {1} opdateret | ||
default.deleted.message={0} {1} slettet | ||
default.not.deleted.message={0} {1} kunne ikke slettes | ||
default.not.found.message={0} med id {1} er ikke fundet | ||
default.optimistic.locking.failure=En anden bruger har opdateret denne {0} imens du har lavet rettelser | ||
|
||
default.home.label=Hjem | ||
default.list.label={0} Liste | ||
default.add.label=Tilføj {0} | ||
default.new.label=Ny {0} | ||
default.create.label=Opret {0} | ||
default.show.label=Vis {0} | ||
default.edit.label=Ret {0} | ||
|
||
default.button.create.label=Opret | ||
default.button.edit.label=Ret | ||
default.button.update.label=Opdater | ||
default.button.delete.label=Slet | ||
default.button.delete.confirm.message=Er du sikker? | ||
|
||
# Databindingsfejl. Brug "typeMismatch.$className.$propertyName for at passe til en given klasse (f.eks typeMismatch.Book.author) | ||
typeMismatch.java.net.URL=Feltet {0} skal være en valid URL | ||
typeMismatch.java.net.URI=Feltet {0} skal være en valid URI | ||
typeMismatch.java.util.Date=Feltet {0} skal være en valid Dato | ||
typeMismatch.java.lang.Double=Feltet {0} skal være et valid tal | ||
typeMismatch.java.lang.Integer=Feltet {0} skal være et valid tal | ||
typeMismatch.java.lang.Long=Feltet {0} skal være et valid tal | ||
typeMismatch.java.lang.Short=Feltet {0} skal være et valid tal | ||
typeMismatch.java.math.BigDecimal=Feltet {0} skal være et valid tal | ||
typeMismatch.java.math.BigInteger=Feltet {0} skal være et valid tal | ||
|
Oops, something went wrong.