{"action":"created","issue":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/1529","labels_url":"https://api.github.com/repos/querydsl/querydsl/issues/1529/labels{/name}","comments_url":"https://api.github.com/repos/querydsl/querydsl/issues/1529/comments","events_url":"https://api.github.com/repos/querydsl/querydsl/issues/1529/events","html_url":"https://github.com/querydsl/querydsl/issues/1529","id":104851268,"number":1529,"title":"Code generation fails when using multiple processors and dependencies between entity types","user":{"login":"jlsalmon","id":1484939,"avatar_url":"https://avatars.githubusercontent.com/u/1484939?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsalmon","html_url":"https://github.com/jlsalmon","followers_url":"https://api.github.com/users/jlsalmon/followers","following_url":"https://api.github.com/users/jlsalmon/following{/other_user}","gists_url":"https://api.github.com/users/jlsalmon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsalmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsalmon/subscriptions","organizations_url":"https://api.github.com/users/jlsalmon/orgs","repos_url":"https://api.github.com/users/jlsalmon/repos","events_url":"https://api.github.com/users/jlsalmon/events{/privacy}","received_events_url":"https://api.github.com/users/jlsalmon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-04T08:44:02Z","updated_at":"2015-09-04T18:23:19Z","closed_at":null,"body":"I have a project where I am using querydsl for both MongoDB entities and JPA entities. One of my mongo entities contains a reference to one of my JPA entities.\r\n\r\nI can get querydsl to generate sources for both types via Gradle, using the `-processor` argument to the apt compiler and giving two processor classes separated by a comma. The classes are generated correctly, but the build fails with the error `Attempt to recreate a file for type`.\r\n\r\nI have created a minimal sample project that demonstrates the issue [here](https://github.com/jlsalmon/querydsl-multiple-processors). To reproduce, run `./gradlew build` and see the error.\r\n\r\nHere's the error log:\r\n```\r\n:generateQueryDSL\r\nAttempt to recreate a file for type test.QJpaEntity\r\nNote: Running JPAAnnotationProcessor\r\nNote: Serializing Entity types\r\nNote: Generating test.QJpaEntity for [test.JpaEntity]\r\nNote: Running MongoAnnotationProcessor\r\nNote: Running MongoAnnotationProcessor\r\nNote: Serializing Entity types\r\nNote: Generating test.QMongoEntity for [test.MongoEntity]\r\nNote: Serializing Embeddable types\r\nNote: Generating test.QJpaEntity for [test.JpaEntity]\r\nerror: Attempt to recreate a file for type test.QJpaEntity\r\nNote: Running JPAAnnotationProcessor\r\nNote: Running MongoAnnotationProcessor\r\n1 error\r\n:generateQueryDSL FAILED\r\n```\r\n\r\nIs this a bug? I don't see any immediate reason why this shouldn't be possible. Thanks in advance.\r\n\r\nP.S. Great work on querydsl, I love it!"},"comment":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/comments/137812081","html_url":"https://github.com/querydsl/querydsl/issues/1529#issuecomment-137812081","issue_url":"https://api.github.com/repos/querydsl/querydsl/issues/1529","id":137812081,"user":{"login":"jlsalmon","id":1484939,"avatar_url":"https://avatars.githubusercontent.com/u/1484939?v=3","gravatar_id":"","url":"https://api.github.com/users/jlsalmon","html_url":"https://github.com/jlsalmon","followers_url":"https://api.github.com/users/jlsalmon/followers","following_url":"https://api.github.com/users/jlsalmon/following{/other_user}","gists_url":"https://api.github.com/users/jlsalmon/gists{/gist_id}","starred_url":"https://api.github.com/users/jlsalmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlsalmon/subscriptions","organizations_url":"https://api.github.com/users/jlsalmon/orgs","repos_url":"https://api.github.com/users/jlsalmon/repos","events_url":"https://api.github.com/users/jlsalmon/events{/privacy}","received_events_url":"https://api.github.com/users/jlsalmon/received_events","type":"User","site_admin":false},"created_at":"2015-09-04T18:23:19Z","updated_at":"2015-09-04T18:23:19Z","body":"No, just a single one (src/generated/java).\n\n\n\n> On 4 Sep 2015, at 19:52, Timo Westkämper <notifications@github.com> wrote:\n> \n> Do you use different target folders?\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}