cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "esis_coder@libero.it" <esis_co...@libero.it>
Subject splitted class into separate table
Date Tue, 15 Nov 2011 16:11:24 GMT
Suppose that in legacy schema,that you are working on getting
Cayenne to work with, you aren't keeping all the information about
user with the user's main information in the users table, but in a
separate table.

For example:

<<table users>>
 id
 firstname
 lastname

<<table accounts>>
 user_id <<PK>><<FK>>
 username
 password
 email

In my domain I wish to have User model with all properties firstname,lastname,
username,email,password 
without create class model related to accounts table and relative
association. Is there a way to do this with Cayenne ? can someone please show 
me a xml example? 
   



Mime
View raw message