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 static webdsl.generated.domain.Customer _static_load_(java.util.UUID prop0) {
   return (webdsl.generated.domain.Customer)
       org.webdsl.tools.Utils.cast(
           utils.PageParamLoad.loadEntity(
               HibernateUtilConfigured.getSessionFactory().getCurrentSession(),
               "webdsl.generated.domain" + "." + "Customer",
               prop0),
           webdsl.generated.domain.Customer.class);
 }
 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());
 }
Exemplo n.º 5
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);
 }
Exemplo n.º 6
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);
 }