openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENJPA-2401) "Fields 'xxx' are not a default persistent type" warning message ignoring XML configuration.
Date Mon, 17 Jun 2013 14:23:21 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-2401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685605#comment-13685605
] 

Glen Mazza commented on OPENJPA-2401:
-------------------------------------

Sure it does, it's just annoying for newbies like me thinking we're doing something wrong
when we're not.  And people strive to remove warning messages from their output, pushing people
to use annotations when they would otherwise be happy with their XML configuration.
                
> "Fields 'xxx' are not a default persistent type" warning message ignoring XML configuration.
> --------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2401
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2401
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 2.2.2
>            Reporter: Glen Mazza
>            Priority: Minor
>
> Hi, unless I set "@OneToMany" as shown here:
> https://github.com/gmazza/blog-samples/blob/master/jpa_and_junit/src/main/java/entities/Department.java#L47
> I'll get this error:
> 678  CompanyPU  WARN   [main] openjpa.Runtime - Fields "employees" are not a default
persistent type, and do not have any annotations indicating their persistence strategy. They
will be treated as non-persistent. If you intended for these fields to be persistent, be sure
to annotate them appropriately. Otherwise annotate them with @Transient.
> However, I shouldn't have to set that annotation because I've already declared one-to-many
via XML configuration:
> https://github.com/gmazza/blog-samples/blob/master/jpa_and_junit/src/main/resources/entities/department.orm.xml#L29

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message