Package demoapp.domain

Examples of demoapp.domain.Name


            } catch (Exception ex) {
              if (logger.isInfoEnabled()) logger.info("Could not generate images data (person crud widget): " + ex.getMessage());
            }
            List<Sex> sex = dao.findByNamedQuery("Sex.findAll", 0, 2, null);
            Person m = new Person();
            m.setName(new Name());
            m.getName().setName("John Smith");
            m.setSex(sex.get(0));
            m.setPhotos(new MultiDocument().addDocument(photoJohn).addDocument(house).addDocument(car).addDocument(dog));
            m.setBlog(new Link());
            m.getBlog().setReadableText(new I18nText());
            m.getBlog().getReadableText().add(new Locale("en"), "My tech blog");
            m.getBlog().getReadableText().add(new Locale("es"), "Mi blog de tecnolog�a");
            m.getBlog().setUrl("http://internna.blogspot.com");
            m.getBlog().setTooltipText(new I18nText());
            m.getBlog().getTooltipText().add(new Locale("en"), "A must read!");
            m.getBlog().getTooltipText().add(new Locale("es"), "�De lectura obligada!");
            dao.create(m, false);
            Person f = new Person();
            f.setName(new Name());
            f.getName().setName("Mary Poppins");
            f.setSex(sex.get(1));
            f.setPhotos(new MultiDocument().addDocument(photoMary));
            dao.create(f, false);
            Calendar calendar = Calendar.getInstance();
View Full Code Here

TOP

Related Classes of demoapp.domain.Name

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.