Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
grails-app
lib
src/java
test/integration
web-app
.classpath
.project
LICENSE
README
RoundTable.launch
RoundTable.tmproj
application.properties
build.xml
stacktrace.log

README

This application illustrates using EJB3 entity beans as your Grails domain
classes. For a complete end-to-end tutorial, check out
http://www.infoq.com/articles/grails-ejb-tutorial.

-This application uses a MySQL database named round_table_unconventional_dev.
See the README_MYSQL file for details on setting up that database schema.

-You may need to execute `grails upgrade` prior to running the app or running
the tests.

-Areas of Interest

--One-to-many relationships -- Check out the domain classes in src/java/. In
there you'll find the Knight and Sword domain classes, implemented as EJB3
entity beans. Knights have many swords, and swords belong to knights.

--Constraints -- With EJB3 entity beans in Grails, observe that we must declare
any constraints in a Groovy script that lives adjacent to the domain class
definition.

--Hibernate Mapping File -- Have a look at the file in the hibernate directory.
When using EJB3 entity beans as your domain classes, you need to register them
in this hibernate.cfg.xml file.
Something went wrong with that request. Please try again.