Menu

Extend generated classes

2004-05-13
2004-09-04
  • Joăo Vicente L. F. Machado

    It's ok to extend (inherit) a generated class add new methods? Doing so i don't loose compatibiliy with new releases of sql2java...

     
    • nr

      nr - 2004-05-15

      Hello,

      Sorry to break compatibility...

      You may want to use the setInstance method in
      XXXManager class to set your own XXXManager.

      Note that you could override createXXXBean in your own manager.

      Could you give us more details? may be it would be easier to simply update your code to use latest sql2java generated code?

      N.

       
      • Joăo Vicente L. F. Machado

        First, i'm sorry for my terrible english!
        I didn't meant that you broke any compatibility issue.
        What i really would like to say was that if i could write new classes extending generated classes and use these extended classes in my projects (by this way, adding my own persistent layer), would be possible to change these extended classes (adding new methods, perhaps) without loosing it when new versions of Sql2Java get out.

        I hope that i have been more clear this time :)

        Thanks a lot...

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.