• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB 3.0 in Action: IDE's and plug-ins

 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Some months ago I was trying out EJB 3.0.

It was quite difficult to find relevant information and
articles explaining how to tackle development. At the end
of the day I was experimenting with Eclipse, Dali plug-in,
and probably some other goodies I can't recall.

Having left that behind, due to other priorities in my
work, I'd be interested to know what you consider the
most comfortable :-) way to develop in EJB 3.0.

Kind regards,

Gian
 
author
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually IDEs are of your choice and depends whatsoever appserver you are using. I tried NetBeans, Eclipse Dali and JDeveloper and all of them have good EJB 3 Support. I personally use JDeveloper!

-Debu
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Debu Panda:
Actually IDEs are of your choice and depends whatsoever appserver you are using. I tried NetBeans, Eclipse Dali and JDeveloper and all of them have good EJB 3 Support. I personally use JDeveloper!

-Debu



Does any of the IDE's you mentioned or other generate entity bean automatically from a database table or view ? For e.g. if i have Customer and would like to generate a Customer class.
 
Gian Franco
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm curious to know that as well...

I've used a Dali plug-in with Eclipse
some time ago to handle these kind of
issues.

Kind regards,

Gian
 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Eclipse (with the Dali plugin ofcourse) does help you generate entities automatically. The project should already have a schema associated with it to do this.

This approach automatically generated basic annotations and had default names for the entity and it's fields. I used the persistence properties panel to set specific properties.

'EJB 3 in Action' mentions that using a mapping file is advantageous over annotations in that the mapping is seperated from the code.

Are there any tools that help you do this i.e. generate a mapping file automatically (couldn't figure how to get this done in eclipse)?
[ March 15, 2007: Message edited by: Rachil Chandran ]
 
author
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JDeveloper lets you generate JPA entities from database tables. It looks for database foreign key constraints between tables and reverse engineers entity relationships wherever it finds them. If you don't happen to use formal constraints on your tables, you can use the JDeveloper JPA mapping tools to add, or tweak, relationships or other ordinary fields on your entities.

JDeveloper also lets you build up 'offline' database objects within the IDE, so you can edit your table definitions as you build your entities, and then generate SQL DDL for your offline schema into a live database connection, optionally replacing existing objects for iterative development.

Also note that in JDev 11 (early releases are available, final release is forthcoming), you can choose to store your edited mappings in either XML or annotations.
 
reply
    Bookmark Topic Watch Topic
  • New Topic