Running java.awt.Robot actions on Node in Selenium Grid Environment

I am running my Automation Test Suite using Selenium Grid. The problem I am facing is that I am unable to perform java.awt.Robot actions on Nodes which are connected to Hub. I have tried several mechanisms like “Java Socket Programming” and “Java RMI” to work it out but as soon as these mechanisms come into picture the control on Nodes which is on WebBrowser goes somewhere else and Robot actions get performed. Can anyone suggest some solution to this problem??

Running java.awt.Robot actions on Node in Selenium Grid Environment

read more

Hibernate validates other packages instead of configured ones

I have 2 packages with JPA entities: org.example.entitiesOne and org.example.entitiesTwo. Both packages have @Entity annotated POJOs. My problem is that even though I have this persistence unit:

   <persistence-unit name="unitOne" transaction-type="RESOURCE_LOCAL">
   <properties>
        <property name="packagesToScan" value="org.example.entitiesOne" />
    </properties>
   </persistence-unit>

hibernate also scans and validates the org.example.entitiesTwo package, which is not valid (yet).
There is no component scan for the base package “org.example” (which would explain this situation) and I only use the “unitOne” persistence unit in building my entity manager:

LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();

    factoryBean.setDataSource(dataSource);
    factoryBean.setPersistenceUnitName("unitOne");
    factoryBean.setJpaDialect(new HibernateJpaDialect());
    factoryBean.setPersistenceProviderClass(HibernatePersistence.class);

read more

Hibernate validates other packages instead of configured ones

I have 2 packages with JPA entities: org.example.entitiesOne and org.example.entitiesTwo. Both packages have @Entity annotated POJOs. My problem is that even though I have this persistence unit:

   <persistence-unit name="unitOne" transaction-type="RESOURCE_LOCAL">
   <properties>
        <property name="packagesToScan" value="org.example.entitiesOne" />
    </properties>
   </persistence-unit>

hibernate also scans and validates the org.example.entitiesTwo package, which is not valid (yet).
There is no component scan for the base package “org.example” (which would explain this situation) and I only use the “unitOne” persistence unit in building my entity manager:

LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();

    factoryBean.setDataSource(dataSource);
    factoryBean.setPersistenceUnitName("unitOne");
    factoryBean.setJpaDialect(new HibernateJpaDialect());
    factoryBean.setPersistenceProviderClass(HibernatePersistence.class);

read more