I am facing the following issue: use disconnected data in JAVA.
More precisely, I need to:
1) do a SELECT (I can use a java.sql.ResultSet)
2) populate an object (e.g., a Vector) of items representing the DB rows I
selected
The issue is that I need to define a class for each table present in my DB.
That class represents a record of a table in my DB.
I seems to me a quite old-fashioned style of programming. So here I am to
ask you:
Is there a smarter way of doing the same thing?
TIA
Dante
Jan-Hendrik Palic - 22 Jan 2004 15:03 GMT
Hi ..
> I am facing the following issue: use disconnected data in JAVA.
> More precisely, I need to:
[quoted text clipped - 7 lines]
> I seems to me a quite old-fashioned style of programming. So here I am to
> ask you:
I and some of my friends did this by representing a relative DB (MySQL
DB) by an XML-Schema. Then we serialized this xsd with jaxb and we got
Classes related to our DB.
Regards
Jan