Examples of newEntity()


Examples of de.iritgo.aktera.hibernate.StandardDao.newEntity()

          }
          else
          {
            try
            {
              Object bean = standardDao.newEntity(entityName);

              try
              {
                MethodUtils.invokeMethod(bean, "init", new Object[0]);
              }
View Full Code Here

Examples of de.iritgo.aktera.hibernate.StandardDao.newEntity()

              }
              else
              {
                try
                {
                  Object bean = standardDao.newEntity(entityName);

                  try
                  {
                    MethodUtils.invokeMethod(bean, "init", new Object[0]);
                  }
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.newEntity()

        throws Exception
    {
        UnitOfWork unitOfWork = module.newUnitOfWork();
        try
        {
            PersonEntity person = unitOfWork.newEntity( PersonEntity.class );

            unitOfWork.complete();
        }
        finally
        {
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.newEntity()

    {
        Usecase usecase = UsecaseBuilder.newUsecase( "usecase1" );
        UnitOfWork uow = module.newUnitOfWork( usecase );
        try
        {
            Trial trial = uow.newEntity( Trial.class, "123" );
            trial.doSomething();
            uow.complete();
            uow = module.newUnitOfWork( usecase );
            usecase = UsecaseBuilder.newUsecase( "usecase2" );
            UnitOfWork uow2 = module.newUnitOfWork( usecase );
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.newEntity()

        throws Exception
    {
        UnitOfWork unitOfWork = module.newUnitOfWork();
        try
        {
            PersonEntity person = unitOfWork.newEntity( PersonEntity.class );

            unitOfWork.complete();
        }
        finally
        {
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.newEntity()

    @Test
    public void testAssemblyMixinsEntity()
        throws UnitOfWorkCompletionException
    {
        UnitOfWork uow = module.newUnitOfWork();
        FooEntity entity = uow.newEntity( FooEntity.class, "123" );
        uow.complete();

        uow = module.newUnitOfWork();
        Foo foo = uow.get( Foo.class, "123" );
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.newEntity()

    @Test
    public void testAssemblyMixinsEntity()
        throws UnitOfWorkCompletionException
    {
        UnitOfWork uow = module.newUnitOfWork();
        FooEntity entity = uow.newEntity( FooEntity.class, "123" );
        uow.complete();

        uow = module.newUnitOfWork();
        Foo foo = uow.get( Foo.class, "123" );
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.newEntity()

    {
        UnitOfWork unitOfWork = module.newUnitOfWork();

        try
        {
            Company company = unitOfWork.newEntity( Company.class );
            Assert.assertEquals( "Company Name Default", "A Company", company.name().get() );

            {
                EntityBuilder<Company> builder = unitOfWork.newEntityBuilder( Company.class );
                final Company companyPrototype = builder.instance();
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.newEntity()

        throws Exception
    {
        UnitOfWork unitOfWork = module.newUnitOfWork();
        try
        {
            PersonEntity father = unitOfWork.newEntity( PersonEntity.class );

            EntityBuilder<PersonEntity> builder = unitOfWork.newEntityBuilder( PersonEntity.class );
            PersonEntity instance = builder.instance();
            instance.father().set( father );
            PersonEntity child = builder.newInstance();
View Full Code Here

Examples of org.qi4j.api.unitofwork.UnitOfWork.newEntity()

    @Test
    public void testGetModuleOfComposite()
        throws Exception
    {
        UnitOfWork unitOfWork = module.newUnitOfWork();
        TestEntity testEntity = unitOfWork.newEntity( TestEntity.class );

        api.getModule( testEntity );

        unitOfWork.discard();
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.