#96 Mask in <copy-by-reference>

Dozer v.4.3
closed
None
7
2008-10-30
2007-04-27
Pupsmaster
No

I have alot of differnt hibernate persistent classes, which are the DB image. So I need not to copy this classes field by field. I can include them in the <copy-by-reference>, but count of the classes, which I want to be copied by reference, is nearly 500. So it'll be the good Feng Shui to use the masks like
<copy-by-reference>
com.my.hibernatemodel.*
</copy-by-reference>

Discussion

  • Franz Garsombke

    Franz Garsombke - 2007-04-27

    Logged In: YES
    user_id=550744
    Originator: NO

    Interesting...cool idea. I will see how hard/easy this will be to implement.

    Can you send a sample mapping of what you would expect it to look like?

    Thanks,

    Franz

     
  • Franz Garsombke

    Franz Garsombke - 2007-04-27
    • assigned_to: nobody --> fgarsombke
     
  • Pupsmaster

    Pupsmaster - 2007-04-28
    • priority: 5 --> 7
     
  • Pupsmaster

    Pupsmaster - 2007-04-28

    Logged In: YES
    user_id=1772460
    Originator: YES

    Now I have in my mapping file some similar to
    ...
    <configuration>
    <copy-by-references>
    <copy-by-reference>com.mypackage.hibernate.model.Model1</copy-by-reference>
    <copy-by-reference>com.mypackage.hibernate.model.Model2</copy-by-reference>
    ............
    <copy-by-reference>com.mypackage.hibernate.model.ModelN</copy-by-reference>
    </copy-by-references>
    </configuration>

    It'll be the useful feature when I can to use "*" and "?" wildcards. And upside staff could be changhe with
    <configuration>
    <copy-by-references>
    <copy-by-reference>com.mypackage.hibernate.model.Model?</copy-by-reference>
    </copy-by-references>
    </configuration>
    or
    <configuration>
    <copy-by-references>
    <copy-by-reference>com.mypackage.hibernate.model.Mod*</copy-by-reference>
    </copy-by-references>
    </configuration>

    ofcourse wildcards must be supported not only end of class name, but this "com.*.model.*" is also available.

     
  • dmitry (lv)

    dmitry (lv) - 2008-09-30
    • assigned_to: fgarsombke --> buzdin
     
  • dmitry (lv)

    dmitry (lv) - 2008-10-08
    • status: open --> closed
     
  • dmitry (lv)

    dmitry (lv) - 2008-10-08

    Accepted and implemented.
    Only wildcard * is supported, but of course in any amounts. "com.*.model.*" will work.
    Will be shipped in next release.

     
  • dmitry (lv)

    dmitry (lv) - 2008-10-30
    • milestone: --> Dozer v.4.3
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks