RE: SimpleORM Download Form
Anthony Berglas <[email protected]>
| Newsgroups | gmane.comp.java.orm.simpleorm |
|---|---|
| Message-ID | <[email protected]> |
It is easy to create a generic method that will populate POJOs, see the mailing list http://tech.groups.yahoo.com/group/SimpleORM/message/1675 Would not be that hard to create a dynamic proxy either -- a fun and project if anyone is interested. Do your other tools use Fields or Bean methods. If the latter then you don't need to create POJOs at all -- just the get and set methods. The key though is to use the SDataSet/SRecordInstances directly for the other purposes. Should only require small wrappers. SRecordInstances are much more powerful than POJOs because they can easily store more information about each field then just its value. Please post to the mailing list. Anthony At 10:17 AM 1/12/2008, you wrote: >Anthony, > >Thankyou for your reply. > >In relation to your answer, let me explain. I have POJO domain objects >that are used with multiple modes - to be used in memory(Java class), to >be stored serializable in caches(Jdbm), to be stored in files as >xml(xstream), to be stored/read from database (hibernate/Spring), as >messages in web service calls(Jaxb). > >So these classes are annotated with annotations from the various >frameworks I use. > >Using your software (which I believe is very good btw), is there a way >to integrate with SimpleORM? (I do use the DAO pattern heavily so maybe >you can suggest a useful workaround using a SimpleORM dao?) > >Another question - I would like to store the same domain class to >multiple tables (same relational schema) - in Hibernate there is a beta >package called SHARDS. What do you suggest for SimpleORM? > >Cary > >-----Original Message----- >From: Anthony & Melissa Berglas >[mailto:[email protected]] >Sent: Sunday, 30 November 2008 12:17 PM >To: Cary Thompson >Subject: Re: SimpleORM Download Form > >It is easy to map SimpleORM to POJOs, but generally not that much point. >It is very easy to work directly with the generalized structures. > >Be very aware that Hibernate does not really use POJOs either. It >sometimes (run time dependent) gives you byte coded subtypes. This can >play havoc with other reflective software such as JaxB. > >A SimpleOrmB would be an excellent contribution. Easy to do, just hook >into the more direct web services layer. > >Anthony > >At 09:55 AM 30/11/2008, you wrote: >>goodpart: Don't know yet - I am attracted to promises of simplicity but >I would like to find out for myself by downloading the s/w >> >>concerns: Not POJO. Means I can't seamlessly integrate with my existing >domain objects (ie my existing XStream, Jaxb, persistent (Hibernate) >annotated classes. >> >>organisation: NEC >> >>city: Australia >> >>orgdesc: rfid systems >> >>nrprogrammers: 3 >> >>howknown: google search >> >>comments: alternative ORMs based on thoughtful other ways of thinking >about the problem are vitally important - keeps the industry on its >toes.I am always on the look out for s/w frameworks that are lightweight >and simple. > > >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?" Dr Anthony Berglas, [email protected] Mobile: +61 4 4838 8874 Just because it is possible to push twigs along the ground with ones nose does not necessarily mean that is the best way to collect firewood. ------------------------------------ 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: mailto:[email protected] mailto:[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/