Examples of Author

  • org.apache.any23.plugin.Author
    Reference test class for {@link SpeciesExtractor}. @author Davide Palmisano (dpalmisano@gmail.com)
  • org.apache.aries.samples.blog.api.persistence.Author
  • org.apache.bval.jsr303.example.Author
  • org.apache.camel.dataformat.bindy.model.simple.onetomany.Author
  • org.apache.geronimo.test.jpa.entity.Author
    This class represents a blog post Author
  • org.apache.ibatis.domain.blog.Author
  • org.apache.jackrabbit.ocm.testmodel.version.Author
  • org.apache.torque.test.Author
  • org.apache.torque.test.dbobject.Author
    Author table The skeleton for this class was autogenerated by Torque on: [Wed Feb 27 08:39:08 CET 2013] You should add additional methods to this class to meet the application requirements. This class will only be generated as long as it does not already exist in the output directory.
  • org.apache.wink.jaxrs.test.jaxb.book.Author
  • org.apache.ws.jaxme.test.misc.types.Author
  • org.asciidoctor.ast.Author
  • org.bar.foo.entities.Author
  • org.conserve.objects.Author
    @author Erik Berglund
  • org.dozer.vo.cumulative.Author
    @author Dmitry Buzdin
  • org.hibernate.search.test.performance.model.Author
    @author Tomas Hradec
  • org.jooq.example.db.h2.tables.Author
  • org.jooq.example.db.h2.tables.pojos.Author
  • org.jrest.dao.test.entities.Author
    作者、编著者、编译者 @author Franky
  • org.lexev.bestwisethoughts.client.data.Author
    Represent Author instance of thought @author Alexey Evseev
  • org.objectweb.speedo.pobjects.fetchgroup.Author
    @author Y.Bersihand
  • org.objectweb.speedo.tutorial.pobjects.additional.detach.Author
    @author Y.Bersihand
  • org.ops4j.pax.exam.sample1.model.Author
  • org.ops4j.pax.exam.sample4.model.Author
  • org.ops4j.pax.exam.sample6.model.Author
  • org.purl.sword.atom.Author
    Represents an Author type, as used in ATOM. This class is used as the base class for the different areas of ATOM that represent information about people. This includes the atom:author and atom:contributor elements. @author Neil Taylor
  • org.springframework.data.elasticsearch.entities.Author
    @author Rizwan Idrees @author Mohsin Husen
  • org.wicketstuff.osgi.test.library.model.Author
  • ru.aristar.jnuget.Author
    @author Unlocker
  • timforce.Author

  • Examples of org.apache.torque.test.Author

        {
            try
            {
                for (int i = 1; i <= 10; i++)
                {
                    Author author = new Author();
                    author.setName("Author " + i);
                    author.save();

                    for (int j = 1; j <= 10; j++)
                    {
                        Book book = new Book();
                        book.setAuthor(author);
    View Full Code Here

    Examples of org.apache.torque.test.dbobject.Author

         */
        public void testUpdate() throws Exception
        {
            cleanBookstore();

            Author otherAuthor = new Author();
            otherAuthor.setName("OtherName");
            otherAuthor.save();

            Author author = new Author();
            author.setName("Name");
            author.save();


            // Test doUpdate methods in Peer explicitly
            Connection connection = Transaction.begin(AuthorPeer.DATABASE_NAME);
            author.setName("NewName2");
            AuthorPeer.doUpdate(author);
            Transaction.commit(connection);

            Criteria criteria = new Criteria();
            criteria.addAscendingOrderByColumn(AuthorPeer.NAME);

            List<Author> authors = AuthorPeer.doSelect(criteria);
            assertEquals("List should contain 2 authors", 2, authors.size());
            assertEquals("First Author's name should be \"NewName2\"",
                    "NewName2",
                    authors.get(0).getName());
            assertEquals("Second Author's name should be \"OtherName\"",
                    "OtherName",
                    authors.get(1).getName());

            author.setName("NewName3");
            AuthorPeer.doUpdate(author);

            criteria = new Criteria();
            criteria.addAscendingOrderByColumn(AuthorPeer.NAME);

    View Full Code Here

    Examples of org.apache.wink.jaxrs.test.jaxb.book.Author

        }
       
        private List<Book> getBookSource() {
            List<Book> source = new ArrayList<Book>();
            Book book = new Book();
            Author author = new Author();
            author.setFirstName("Eddie");
            author.setLastName("Vedder");
            book.setAuthor(author);
            book.setTitle("Vitalogy");
            source.add(book);
            book = new Book();
            author = new Author();
            author.setFirstName("Stone");
            author.setLastName("Gossard");
            book.setAuthor(author);
            book.setTitle("Ten");
            source.add(book);
            return source;
        }
    View Full Code Here

    Examples of org.apache.ws.jaxme.test.misc.types.Author

        marshaller.marshal(getAllTypesElement(), sw);
        assertEquals(input.toString(), sw.toString());
      }

      protected String getMarshalledAuthor() throws JAXBException {
          Author author = new ObjectFactory().createAuthor();
          author.setRating(2);
          author.setValue("This is a test.");
          StringWriter sw = new StringWriter();
          getFactory().createMarshaller().marshal(author, sw);
          return sw.toString();
      }
    View Full Code Here

    Examples of org.asciidoctor.ast.Author

      @Test
      public void author_info_should_be_bound_into_author_class() {
       
        DocumentHeader header = asciidoctor.readDocumentHeader(new File("target/test-classes/documentheaders.asciidoc"));
       
        Author author = header.getAuthor();
        assertThat(author.getEmail(), is("doc.writer@asciidoc.org"));
        assertThat(author.getFullName(), is("Doc Writer"));
        assertThat(author.getFirstName(), is("Doc"));
        assertThat(author.getLastName(), is("Writer"));
        assertThat(author.getInitials(), is("DW"));
       
      }
    View Full Code Here

    Examples of org.bar.foo.entities.Author

        newsPaper.setJournalist(new Journalist[] {newJournalist(),newJournalist()});
        return newsPaper;
      }
     
      public static Author newAuthor() {
        Author author = new Author();
        author.setAddress("myAddress");
        author.setBithdate(getDate(1935, 01, 01));
        author.setId(2);
        author.setName("Isaac Asimov");
        author.setSex(1);
        return author;
      }
    View Full Code Here

    Examples of org.conserve.objects.Author

       */
      @Test
      public void testAuthorBookSimple() throws Exception
      {
        // create one author
        Author asimov = new Author();
        asimov.setBirthYear(1920);
        asimov.setFirstName("Isaac");
        asimov.setLastName("Asimov");

        // create some books
        Book foundation = new Book("Foundation");
        foundation.setPublishedYear(1951);
        foundation.addKeyWord("science fiction");
        foundation.addKeyWord("psychohistory");
        asimov.addBook(foundation);
        Book cavesofsteel = new Book("The Caves of Steel");
        cavesofsteel.setPublishedYear(1954);
        cavesofsteel.addKeyWord("science fiction");
        cavesofsteel.addKeyWord("robot");
        cavesofsteel.addKeyWord("crime");
        asimov.addBook(cavesofsteel);

        // save everything
        PersistenceManager persist = new PersistenceManager(driver, database, login, password);
        persist.saveObject(asimov);
        persist.close();

        // open a new connection
        persist = new PersistenceManager(driver, database, login, password);

        // find all books with the authors last name 'Asimov'.
        asimov = new Author();
        asimov.setLastName("Asimov");
        Book seekBook = new Book();
        seekBook.addAuthor(asimov);
        List<Book> asimovBooks = persist.getObjects(Book.class, new Equal(seekBook));
        assertEquals(2, asimovBooks.size());
        // print the title of the scifi books
    View Full Code Here

    Examples of org.dozer.vo.cumulative.Author

      * one more - salary.
      */
      @Test
      public void testMapping() {
        Library libSrc = newInstance(Library.class);
        Author author = newInstance(Author.class, new Object[] {"The Best One", new Long(505L)});
        Book book = newInstance(Book.class, new Object[] {new Long(141L), author});
        libSrc.setBooks(Collections.singletonList(book));

        LibraryPrime libDest = newInstance(LibraryPrime.class);
        AuthorPrime authorPrime = newInstance(AuthorPrime.class, new Object[] {new Long(505L), "The Ultimate One", new Long(5100L)});
    View Full Code Here

    Examples of org.hibernate.search.test.performance.model.Author

        book.setTitle( "title" + bookId );
        book.setSummary( SUMMARIES[(int) ( bookId % SUMMARIES.length )] );
        book.setRating( 0.0f );
        book.setTotalSold( 0L );
        book.setPublicationDate( DateUtils.addDays( PUBLICATION_DATE_ZERO, (int) ( bookId % 1000 ) ) );
        book.getAuthors().add( new Author( authorId, "author" + authorId ) );

        fts.merge( book );
      }
    View Full Code Here

    Examples of org.jooq.example.db.h2.tables.Author

        @Test
        public void testJoin() throws Exception {
            // All of these tables were generated by jOOQ's Maven plugin
            Book b = BOOK.as("b");
            Author a = AUTHOR.as("a");
            BookStore s = BOOK_STORE.as("s");
            BookToBookStore t = BOOK_TO_BOOK_STORE.as("t");

            Result<Record3<String, String, Integer>> result =
            create.select(a.FIRST_NAME, a.LAST_NAME, countDistinct(s.NAME))
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.