persistence@glassfish.java.net

Dynamically/runtime definition of _at_Table name

From: Leonard Sitongia <sitongia_at_ucar.edu>
Date: Fri, 21 Dec 2007 14:04:12 -0700

Sorry if this is the wrong list for this subject. Please let me know if
you have a better idea.

I have large tables of data organized in time. I'm thinking that I'll
break it up into separate tables by year, to keep the table size down to
300,000-ish rows.

Is there a way to define the table to map a class to at runtime, a
dynamic @Table(name=runtime-expression)? The schema in the tables will
be same of course, only the name changes.

Thanks!

-- 
==Leonard E. Sitongia
   High Altitude Observatory
   National Center for Atmospheric Research
   P.O. Box 3000 Boulder CO 80307  USA
   sitongia_at_ucar.edu  voice: (303)497-2454  fax: (303)497-1589