Problems encountered when using Hibernate

1. If the attribute value in the entity class contains uppercase letters, it will be automatically converted to underscore and lowercase letters.

    Solution: Comment the following code in the hibernate configuration file

  

<property name="namingStrategy">
    <bean class="org.hibernate.cfg.ImprovedNamingStrategy" />
</property>


{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324083091&siteId=291194637