daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Class A {
  2.     List<AA> listAA;
  3.     // get set methods...
  4. }
  5.  
  6. Class B{
  7.     C objectC = new C();
  8.     // get set methods...
  9. }
  10.  
  11. Class C{
  12.     List<CC> listCC;
  13.     // get set methods...
  14. }
  15.  
  16. Class AA{
  17.     String aa;
  18.     // get set methods...
  19. }
  20.  
  21. Class CC{
  22.      String cc;
  23.     // get set methods...
  24. }
  25.    
  26. a.listAA -> b.c.listCC
  27.    
  28. <mappings>
  29.     <mapping>
  30.         <class-a>mypackages.A</class-a>
  31.         <class-b>mypackages.B</class-b>
  32.         <field>
  33.             <a>listA</a>
  34.             <b>objectC.listC</b>
  35.             <b-hint>mypackages.CC</b-hint>
  36.         <field>
  37.     </mapping>
  38.  
  39.     <mapping>
  40.         <class-a>mypackages.AA</class-a>
  41.         <class-b>mypackages.CC</class-b>
  42.         <field>
  43.             <a>aa</a>
  44.             <b>cc</b>
  45.         <field>
  46.     </mapping>
  47. </mappings>
  48.    
  49. objectC.listC
  50.    
  51. NullPointerException
  52.     at org.dozer.util.ReflectionsUtils.invoke(ReflectionsUtils)
  53.     ...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top