Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2007, 05:21 PM
Member
 
Join Date: May 2007
Posts: 39
Alan is on a distinguished road
Tables In Ejb3
Hello

I am working with EJB3 and I have the next doubt:
I have in my dbase 3 tables with the same structure (Mov2005, Mov2006 and Mov2007) and the records be inserted in these depending of the year in the date of the movement.


they all have the same structure, the ideal thing would be create the only entity that administers the information, but here my great worry comes and is how I say to to the EntityManager that it should insert in certain table depending the year of the movement?

I have investigated and the only thing that I found is to create an entity for every table and to use CreateQuery to create the Dynamical sql, but this would imply that every year it is necessary to modify the application to create the entity. One thought of leaving the whole movement in the same table, but the volume of records per year is high and starts getting lost time of response.

Any suggestions?
Alan

Last edited by Alan : 06-01-2007 at 02:47 AM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-10-2007, 05:36 PM
Member
 
Join Date: May 2007
Posts: 38
Marty is on a distinguished road
What is your database? sql? mysql? the thing that you want to do calls:"Partinioning"that is to say, to save a table (that is waited is very big) partitioned in several tables from criteria
It is practical commonly when one works with big volume and motors such as: oracle and PostgreSQL have this functionality and are transparent to the development of the application. Notice if you solve for this side.
good luck
marty

Last edited by Marty : 06-01-2007 at 04:34 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
caching the tables jayashree Database 0 01-30-2008 07:43 AM
Can I use annotations in superclass, and .cfg.xml files in subclasses in EJB3 narayanrec Enterprise JavaBeans 4 01-06-2008 03:40 AM
how to sort 2 tables valery AWT / Swing 1 08-06-2007 09:30 PM
EJB3 question bbq Enterprise JavaBeans 2 07-04-2007 09:58 AM
error in JBoss with hibernate, EJB3 and postgres Nick15 Eclipse 3 05-14-2007 06:10 PM


All times are GMT +3. The time now is 02:51 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org