Hi, my scenerio is:
table product
(
product_id int,
name varchar(20)
)
table product_description
(
product_id int,
lang_id smallint,
description
)
I want to have a class FullProduct which have a "composite-id" of product_id and lang_id. The class will look like this...
public class FullProduct
{
class PK() {...} // inner class
PK pk;
String name,
String description
}
I can do this easily with a table VIEW. Which, is NOT able to update!!
Any suggestion how can i do it? I am afriad <joined-subclass> cannot help ...
I totally understood that this is NOT a common situation, but this design will save many development days...
|