Re: SimpleORM Download Form

Anthony Berglas <[email protected]>
Newsgroups gmane.comp.java.orm.simpleorm
Message-ID <[email protected]>
Hello Martin,

The generator had not been upgraded to 3.0, so your work is much appreciated.  

meta.findOrCreate is now SSessionJDBC.findOrCreate and friends.  Before going too far with the generator I suggest that you carefully read through ADemo.java to see the general flow.

I would prefer not to introduce dependencies to other packages such as Ant.  Make sure that the generator can run as a simple main().  This can be simply called from Ant (possibly via a macro), or you could add an ant wrapper in a separate, completely optional class.

When you are finished, send it to me and I will check it in.  

It should have a little self contained test case/example.  Eg. build the Employee/Department schema in HSQL from the main tests, then reverse engineer it back with the tool.  If that is done I will be able to move it from Extras to part of the main tool (in its own jar).

Also, please post your progress to the mailing list.

Thanks,

Anthony


At 08:29 PM 1/12/2008, you wrote:
>Hello,
>
>Thanks for the info. I have now looked a bit deeper into the code, and ran into some problems (most of which I have fixed) :
>
>* I converted the generate-code into an ant-task (extending Task etc) to run from ant
>* In the generator code, there are some compilation issues with > java 5.0. Fixed those
>* The generator creates code with path-separator (:) instead of file separator (/) on unix, which does not work well. Fixed that.
>* The genereator generates somewhat obsolete code, referencing SProperty instead of SFieldString and SFieldFlags. Fixed that.
>* The generator also generates calls to meta.findOrCreate( new Object[] {new Long( _fldId)}); . I do not know exactly where that method has been moved now?
>
>/Martin
>
>
>Anthony & Melissa Berglas wrote:
>>Hello Martin,
>>
>>You can always generate code, and that is your only real choice with reflective based technologies like Hibernate.
>>
>>With SimpleORM, you do not need to generate code at all because you can easily create and interrogate its generalized structures.
>>
>>Anthony
>>
>>At 01:41 AM 29/11/2008, you wrote:
>>  
>>>name: Martin Holst Swende
>>>
>>>goodpart: It seems simple
>>>
>>>concerns: I am not sure, I want to be able to auto-generate code from schemas or talbes, have not checked if that is possible yet
>>>
>>>organisation: MSC Konsult AB
>>>
>>>city: Sweden
>>>
>>>orgdesc: Consultancy, Java
>>>
>>>nrprogrammers: 1
>>>
>>>howknown: Collegue recommended it
>>>
>>>comments: Have not worked with ORM-tools before, main objective using SimpleORM is basically to learn some new stuff
>>>    
>>
>>
>>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?"
>>
>>  
>
>
>-- 
>Martin Holst Swende ................. MSC Konsult AB
>tel: +46(0)70 9519098 ............... Vasagatan 52
>[email protected] .......... 111 20 Stockholm
>

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.