• Post Reply Bookmark Topic Watch Topic
  • New Topic

DB Column Order and EJBs

 
Buzz Andersen
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm new to working with Enterprise JavaBeans, and I have a simple question that none of my books, websites, etc. seem to answer. I am using JBoss, and when I create a new entity bean, it sets up a table in the database matching the cmp fields in the bean. It seems to put them in rather arbitrary order, however, whereas I would like to set them up in a more specific way. Is there any way (perhaps through the ejb-jar.xml file) to control how these columns are ordered?
Buzz
[This message has been edited by Buzz Andersen (edited November 06, 2001).]
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, database column order doesn't matter in a database, so you could always drop your database table and use a CREATE statement to put it back in the order you like...
Kyle
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
[This message has been edited by Kyle Brown (edited November 06, 2001).]
 
Buzz Andersen
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I know it doesn't matter--I'm just kind of anal about things like that :-). Thanks for the advice...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!