• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

How to build all POJOs in one action

 
Ranch Hand
Posts: 32
MySQL Database Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Javaranch..

I have 5 POJOs and i want to build them in one execution.
What tool must i have?

Thanks
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All you need is a Java compiler and programming skill.
 
Fandy Akhmad
Ranch Hand
Posts: 32
MySQL Database Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I mean that 5 POJOs is automatically build and become a tables in database.
May be need some tool for build that POJOs
 
Ranch Hand
Posts: 110
Google Web Toolkit Java Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The question is: what you meant with "action"?

Is this a struts action? If so, which struts feature are you using (or any other library you're using) to serialize objects in requests and responses?

If you're going to take your application to this level, I would advise you move to other framework: http://vraptor.caelum.com.br/ with @Consumes( "application/json"). But if you have a lot of code already written using struts, try to find something that allow you serialize JSON objects into the action context and you'll be able to get them already serialized. Something like this http://code.google.com/p/jsonplugin/.

Anyway, consider frameworks like these: VRaptor, RESTEasy, etc, they are more evolved in the "Java web development way of thinking," nothing against Struts but I've been seeing extremely good changes while using http-based technologies! REST with some powerful IoC container behind.

I hope this helps!
 
Bartender
Posts: 4109
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Fandy Akhmad wrote:I mean that 5 POJOs is automatically build and become a tables in database.


You need to automate the schema creation? And you may need to provide clear information about what you are trying to accomplish. Please read TellTheDetails.
 
Jayr Motta
Ranch Hand
Posts: 110
Google Web Toolkit Java Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For DDL automatic generation you may use JPA annotations and some persistence provider with this feature enabled.
 
Fandy Akhmad
Ranch Hand
Posts: 32
MySQL Database Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for my unclear post.

I want to generate table use Apache Ant. I know it must use build.xml file.
How the structure of build.xml file?
 
Vijitha Kumara
Bartender
Posts: 4109
72
Hibernate Fedora Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Fandy Akhmad wrote:...How the structure of build.xml file?


I suggest you start with the simple Ant guide provided in the manual itself here.
 
Fandy Akhmad
Ranch Hand
Posts: 32
MySQL Database Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your suggestion.
 
Ever since I found this suit I've felt strange new needs. And a tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic