> -----Original Message----- > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] > > ok, for (a) I see that I should ensure all access goes > through a SLSB, and not to the EB itself. Pretty happy with that. > > for (b) I had been thinking of keeping a reference to the > previous version, so I have a chain of entities. this would > make creating > the entire list of versions difficult, but would allow some > level of access to previous versions.
Why not have the version number be part of the PK, along with whatever other values you had before, then add a findAllVersions(otherPKFields) that would return a collection of all of the entities that are versions of this one. -- Jason ==========================================================================To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
