This content has been marked as final.
Show 2 replies
-
1. Re: One BMP for several postgresql tables
jamesstrachan Dec 13, 2004 7:19 AM (in response to greishka)Well Nicolas,
BMP won't go back to reload from the database because it sees a primary key "2" that it believes that it has already loaded.
I suggest that you prefix each ID field in the BMP entity bean with the name of the table as below :-table1/2 table2/2
This gives each combination of table and row a unique ID.
Good database design would also suggest rolling tables with the same structure into a single table, again using an extra key field to identify the contents of each original table.
James -
2. Re: One BMP for several postgresql tables
greishka Dec 13, 2004 9:12 AM (in response to greishka)Many thanks James, I solved the problem by creating a unique sequence for all generic tables, that can give unique id for all my tables.
Nicolas