Hi,
I am trying to map a class that has string property. Ok, so far so good. ;) The problem is, that due SQL server restrictions i have to put some long texts in an extra table.
What I now want to do is to map this that way, so i can access the text directly, like
Code:
myClass.getText()
Here how the tables e.g. may look like.
Code:
__________________ __________________
| tblMyClass | | tblText |
------------------ ------------------
| ... | |-> | textid (int) |
| textid (int) |-| | text (varchar) |
| ... | | ... |
------------------ ------------------
And here an example class:
Code:
class myClass
{
...
private String text;
...
public String getText()
{ ...}
public String setText(String text)
{ ... }
}
Is this possible or I am totaly wrong?
Best
eg