Java Xmlbeans Throws Nosuchmethod Error

Exception in thread main java.lang.NoSuchMethodError: org.springframework.beans.support.ResourceEditorRegistrar

Put the property as

<prop key="hibernate.hbm2ddl.auto">update</prop>

inside props tag of property in Hibernate.xml file.

It will look like this:

<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.DerbyDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
</props>
</property>

DTO pattern: Best way to copy properties between two objects

You can have a look at dozer which is a

Java Bean to Java Bean mapper that recursively copies data from one object to another. Typically, these Java Beans will be of different complex types.

Another better link...



Related Topics



Leave a reply



Submit