This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Gian Franco
blacksmith
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • 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
 
Debu Panda
author
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • 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
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 979
  • Mark post as helpful
  • send pies
  • 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
 
Rachil Chandran
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • 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 ]
 
Jon Wetherbee
author
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!