public void validateName_internal_(webdsl.generated.domain.ValidationExceptionMultiple v2) {
   if (!(org.webdsl.tools.Utils.equal(this.getName().length(), null)
           || org.webdsl.tools.Utils.equal(255, null))
       && this.getName().length() > 255) {
     v2.addToExceptions(webdsl.generated.functions.ent_Customer_objCr1_.ent_Customer_objCr1_());
   } else {
   }
 }
 public void validateBio_internal_(webdsl.generated.domain.ValidationExceptionMultiple v12) {
   if (!(org.webdsl.tools.Utils.equal(this.getBio().length(), null)
           || org.webdsl.tools.Utils.equal(1000000, null))
       && this.getBio().length() > 1000000) {
     v12.addToExceptions(webdsl.generated.functions.ent_Customer_objCr10_.ent_Customer_objCr10_());
   } else {
   }
 }
 public boolean equals(Object o) {
   return o != null
       && o instanceof org.webdsl.WebDSLEntity
       && ((org.webdsl.WebDSLEntity) o).instanceOf("Customer")
       && org.webdsl.tools.Utils.equal(
           (o instanceof org.hibernate.proxy.HibernateProxy
                   ? Customer.class.cast(
                       ((org.hibernate.proxy.HibernateProxy) o)
                           .getHibernateLazyInitializer()
                           .getImplementation())
                   : Customer.class.cast(o))
               .getId(),
           getId());
 }
示例#4
0
 public void assertNotSame(Object o1, Object o2, String message, String loc) {
   assertTrue(
       !org.webdsl.tools.Utils.equal(o1, o2),
       message + "\nassert not same\nfirst value was:  " + o1 + "\nsecond value was: " + o2,
       loc);
 }
示例#5
0
 public void assertEquals(Object o1, Object o2, String message, String loc) {
   assertTrue(
       org.webdsl.tools.Utils.equal(o1, o2),
       message + "\nassert equals\nfirst value was:  " + o1 + "\nsecond value was: " + o2,
       loc);
 }