RE: Annotations and Struts

2004-12-15 Thread Jim Barrows


> -Original Message-
> From: bryan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 1:02 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: Annotations and Struts
> 
> 
> yet 99.% of the time all that people want to do are 
> CRUD actions ..

Well, for Read you have variations like:
findByPK
findByDate
findAllWithin(Date start, Date end);
findByExample( Blah blah);
findDelinquentAccounts();
yadda yadda

Same type of things for update and delete as well.


> 
> --b
> 
> 
> On Wed, 15 Dec 2004 14:20:23 +0800, Andrew Hill
> <[EMAIL PROTECTED]> wrote:
> > Im not so sure that would work too well as the actionforms are
> > representations of the view state, and whats in a form on the view
> > doesnt necessarily correspond directly to the objects that 
> are modelled
> > at the business tier, and often contains other stuff that is view
> > specific, or exists to workaround view layer issues (like 
> the need for a
> > reset method).
> > 
> > Mike Duffy wrote:
> > 
> > > The Austin JUG meeting tonight featured the J2SE 5.0 
> presentation from Sum.
> > >
> > > I am currently using the new annotations feature on a 
> test project using EJB 3.0 and JBoss.  It is
> > > very cool; just annotate your entity beans and the server 
> does all the database mappings.
> > >
> > > As I was listening to tonight's presentation, I thought 
> it would be a good idea to annotate the
> > > same entity beans with "formParameter" annotations; i.e., 
> do away with form beans and the mapping
> > > of form beans to business model objects.
> > >
> > > I know this is exactly what is planned for JSF (making 
> the backing beans and entity beans one in
> > > the same); however, I do not want to move to JSF at this 
> time (maybe the change will be worth
> > > while when JSF truly has some rich client components; 
> until then, why make such a radical change
> > > from something that is working well).
> > >
> > > In any case, has anyone given serious thought to doing 
> away with form beans in Struts and moving
> > > to annotations?
> > >
> > > Mike
> > >
> > >
> > >
> > > __
> > > Do you Yahoo!?
> > > Send holiday email and support a worthy cause. Do good.
> > > http://celebrity.mail.yahoo.com
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> http://www.revoltingdigits.com
> https://jestate.dev.java.net
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Annotations and Struts

2004-12-15 Thread bryan
yet 99.% of the time all that people want to do are CRUD actions ..

--b


On Wed, 15 Dec 2004 14:20:23 +0800, Andrew Hill
<[EMAIL PROTECTED]> wrote:
> Im not so sure that would work too well as the actionforms are
> representations of the view state, and whats in a form on the view
> doesnt necessarily correspond directly to the objects that are modelled
> at the business tier, and often contains other stuff that is view
> specific, or exists to workaround view layer issues (like the need for a
> reset method).
> 
> Mike Duffy wrote:
> 
> > The Austin JUG meeting tonight featured the J2SE 5.0 presentation from Sum.
> >
> > I am currently using the new annotations feature on a test project using 
> > EJB 3.0 and JBoss.  It is
> > very cool; just annotate your entity beans and the server does all the 
> > database mappings.
> >
> > As I was listening to tonight's presentation, I thought it would be a good 
> > idea to annotate the
> > same entity beans with "formParameter" annotations; i.e., do away with form 
> > beans and the mapping
> > of form beans to business model objects.
> >
> > I know this is exactly what is planned for JSF (making the backing beans 
> > and entity beans one in
> > the same); however, I do not want to move to JSF at this time (maybe the 
> > change will be worth
> > while when JSF truly has some rich client components; until then, why make 
> > such a radical change
> > from something that is working well).
> >
> > In any case, has anyone given serious thought to doing away with form beans 
> > in Struts and moving
> > to annotations?
> >
> > Mike
> >
> >
> >
> > __
> > Do you Yahoo!?
> > Send holiday email and support a worthy cause. Do good.
> > http://celebrity.mail.yahoo.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
http://www.revoltingdigits.com
https://jestate.dev.java.net

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Annotations and Struts

2004-12-14 Thread Andrew Hill
Im not so sure that would work too well as the actionforms are 
representations of the view state, and whats in a form on the view 
doesnt necessarily correspond directly to the objects that are modelled 
at the business tier, and often contains other stuff that is view 
specific, or exists to workaround view layer issues (like the need for a 
reset method).

Mike Duffy wrote:
The Austin JUG meeting tonight featured the J2SE 5.0 presentation from Sum.
I am currently using the new annotations feature on a test project using EJB 
3.0 and JBoss.  It is
very cool; just annotate your entity beans and the server does all the database 
mappings.
As I was listening to tonight's presentation, I thought it would be a good idea 
to annotate the
same entity beans with "formParameter" annotations; i.e., do away with form 
beans and the mapping
of form beans to business model objects.
I know this is exactly what is planned for JSF (making the backing beans and 
entity beans one in
the same); however, I do not want to move to JSF at this time (maybe the change 
will be worth
while when JSF truly has some rich client components; until then, why make such 
a radical change
from something that is working well).
In any case, has anyone given serious thought to doing away with form beans in 
Struts and moving
to annotations?
Mike
		
__ 
Do you Yahoo!? 
Send holiday email and support a worthy cause. Do good. 
http://celebrity.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Annotations and Struts

2004-12-14 Thread Mike Duffy
The Austin JUG meeting tonight featured the J2SE 5.0 presentation from Sum.

I am currently using the new annotations feature on a test project using EJB 
3.0 and JBoss.  It is
very cool; just annotate your entity beans and the server does all the database 
mappings.

As I was listening to tonight's presentation, I thought it would be a good idea 
to annotate the
same entity beans with "formParameter" annotations; i.e., do away with form 
beans and the mapping
of form beans to business model objects.

I know this is exactly what is planned for JSF (making the backing beans and 
entity beans one in
the same); however, I do not want to move to JSF at this time (maybe the change 
will be worth
while when JSF truly has some rich client components; until then, why make such 
a radical change
from something that is working well).

In any case, has anyone given serious thought to doing away with form beans in 
Struts and moving
to annotations?

Mike



__ 
Do you Yahoo!? 
Send holiday email and support a worthy cause. Do good. 
http://celebrity.mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]