Xtext is a great tool. A good starting point for reading is
http://www.eclipse.org/Xtext/documentation/
 
The Xtext plugin for eclipse ships with the so called 'domain model' 
example.
It is a DSL (Domain Secific Language) for describing your entities and their 
relationships.
Next step is to write a generator based on Xpand - a transformation 
language.
 
There is an analogy to the world of xml:
- with the help Xtext you are writing a grammar like XSD
- your model is syntactically correct if it is conform to your grammar. A 
model is like XML.
  (your model is semantically correct, if it correctly decribes your 
business within your functional domain)
- Xpand is like XSLT. It is a language to transform your models to whatever 
you want. in your case JPA.
 
Your challange is to write a generator which transforms your model (of 
entities)
to JPA (or GWT or both or whatever) code.
 
I wrote a full blown extended version of the original domain model example 
with a code generator
for jpa (+ gwt request factory).
If your company needs professional help in the context of generative 
development with jpa / gwt please contact me directly:
[email protected]
 
Cheers
 
Daniel Dietrich
 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VasRU3MqkKwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to