I'm just thinking in using Java POJOs as "lingua franca". And this
thread can be a first step for that.
Are you thinking in XML ? in Ruby ?
>
My goal is ... creating a
common way for writting the model classes for our frameworks, In this
way, we can achieve more portability. Moreover, we add value to our
frameworks. The users of JMatter will not write application for
JMatter anymore, but they will write "standard" Java applications that
JMatter can be run.
For example, you use @Persist propietary annotation. Why not do you
use @Entity from JPA ? Why not to embrace JPA for collections,
relationships, inheritance, etc ?
And instead of using your own validation framework, why not to use
Hibernate Validator ?
Or JSR-303 when available.
If you do so, an application written for OpenXava (that uses JPA and
Hibernate Validator) can be ported to JMatter easily.
OpenXava uses JPA since version 3, before it used a propietary XML
format.
OpenXava uses Hibernate Validator since version 3.0.1, before it used
a propietary validator.
We changed OX in order to be more standard.
Are you willing to do the same with JMatter ?
What do you think ?
Hi Eitan,
In this case I prefer the standard (JSR or de facto) even though it
> i wonder whether differences in opinion on design might get in
> the way of abiding by a single standard. for example i'm big on
> using the equivalent of scala's val declaration (final members
> in java) to model child fields. whereas i get the feeling that most
> java developers prefer the javabeans convention.
will be not the best option. OX uses javabeans conventions for properties.
Although I don't like java properties, look at this:
http://sourceforge.net/tracker/index.php?func=detail&aid=1769130&group_id=123187&atid=695746
Yes, I don't like getters and setters and OX3.1 will allow work
without them,
but OX supports getters and setters first and it will continue
supporting them for ever.
In 90s a like Eiffel but I choose Java.
I loved JDO, but I choose JPA.
Saludos
Javi