[jbosstools-issues] [JBoss JIRA] (JBIDE-15842) JPA Hibernate validation rules are too strict by default

Marek Novotny (JIRA) issues at jboss.org
Thu Jul 24 06:27:30 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-15842?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987627#comment-12987627 ] 

Marek Novotny commented on JBIDE-15842:
---------------------------------------

Are you gonna fix this?

if you look at http://docs.oracle.com/javaee/6/api/javax/persistence/ManyToOne.html there is clearly written
targetEntity - (Optional) The entity class that is the target of the association.

> JPA Hibernate validation rules are too strict by default
> --------------------------------------------------------
>
>                 Key: JBIDE-15842
>                 URL: https://issues.jboss.org/browse/JBIDE-15842
>             Project: Tools (JBoss Tools)
>          Issue Type: Enhancement
>          Components: hibernate
>            Reporter: Tomas Remes
>            Assignee: Koen Aers
>             Fix For: 4.2.x
>
>
> When you for example import Seam UI example (https://github.com/seam2/jboss-seam/tree/Seam_2_3/examples/ui) to JBDS, you will face a lot of IMO unnecessary errors, which are fired by JPA validator. E.g:
> "Target entity is not defined"
> These rules are in most cases defined as optional attributes of JPA annotations, therefore I think the validation rules are too strict - many of them have error level by default. 



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list