{"id":619,"date":"2009-12-18T17:25:53","date_gmt":"2009-12-18T17:25:53","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=619"},"modified":"2011-11-17T12:27:35","modified_gmt":"2011-11-17T12:27:35","slug":"eclipse-error-class-is-listed-in-persistence-xml-but-not-mapped","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=619","title":{"rendered":"Eclipse error &#8220;Class is listed in persistence.xml but not mapped&#8221;"},"content":{"rendered":"<p>Sometimes eclipse lists the following error in the problem view :-<\/p>\n<p><strong>Class xxx is listed in the persistence.xml file but is not mapped<\/strong><\/p>\n<p>This appears to be a synchronisation problem within Eclipse, as deleting the classes from persistence.xml and then adding them back by browsing with Eclipse&#8217;s own persistence.xml editor eliminates the problem, even though the resulting file is identical. Validating the original file did not solve the problem.<\/p>\n<p>Even with the error listed, projects still run and build successfully, so the problem is not serious.<\/p>\n<p>I have also had other cases where Eclipse has whinged about a perfectly good persistence.xml, and have in general just lived with it as it is not serious.<\/p>\n<p>This is an important issue to be aware of though to prevent much head scratching when such a problem is believed to be a real error and is not!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes eclipse lists the following error in the problem view :- Class xxx is listed in the persistence.xml file but is not mapped This appears to be a synchronisation problem within Eclipse, as deleting the classes from persistence.xml and then adding them back by browsing with Eclipse&#8217;s own persistence.xml editor eliminates the problem, even though [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[13,9,40,182],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/619"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=619"}],"version-history":[{"count":3,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/619\/revisions"}],"predecessor-version":[{"id":1566,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/619\/revisions\/1566"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}