Re: creating SRecordInstance outside SDataSet. And SRecordInstance Inheritance support
[email protected] Mon, 19 Jul 2010 21:40:16 +1000
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
Detaching and reattaching individual records independently from the data set caused many issues with references/associations etc. And did not seem to be very useful. Do not know what you mean by "sql native inheritance". If you mean SQL 99 INHERITS style then it would make sense, but I have never heard of anyone using that feature. People just flatten the subtypes out, and nulls cost virtually nothing. You are suggesting a substantial change. You would want to be very familliar with Simpleorm first. Anthony At 08:13 AM 18/07/2010, Steeve St-Laurent wrote: > > >Hi, > >I saw that SDataSet.attach is deprecated. >Why is attach deprecated and not recommended to create a SRecordInstance outside a dataset. > >Also, im working on a new feature that would allow SRecordInstance inheritance with sql native inheritance. >My way of doing it is with a new constructor and a new getter in SRecordMeta > >public <E extends SRecordInstance> SRecordMeta(SRecordMeta<E> parent, Class<T> userClass, String tableName) >public SRecordMeta<? extends SRecordInstance> getParent() > >I would like to have comments on the way of doing it. >My knowledge of SimpleORM is limited. >For now, I'm on writing test. > >Thanks to author for giving code to open-source. Its greatly appreciated. > >Steeve > Spreadsheet Detective, Southern Cross Software Queensland Pty Limited 54 Gerler Street Bardon, Queensland 4065, Australia. Email: [email protected] www.SpreadsheetDetective.com Ph: +61 427 830248 (Australian Eastern Standard Time) "If the model seems correct only because the numbers look right, then why build the model in the first place?" ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/SimpleORM/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/SimpleORM/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
123e0a6b.jpg
(image/jpeg, 4.1 KB) - not displayed