{"action":"created","issue":{"url":"https://api.github.com/repos/requery/requery/issues/200","repository_url":"https://api.github.com/repos/requery/requery","labels_url":"https://api.github.com/repos/requery/requery/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/requery/requery/issues/200/comments","events_url":"https://api.github.com/repos/requery/requery/issues/200/events","html_url":"https://github.com/requery/requery/issues/200","id":161454206,"number":200,"title":"doc request: adding requery over existing DB","user":{"login":"kenkyee","id":12235883,"avatar_url":"https://avatars.githubusercontent.com/u/12235883?v=3","gravatar_id":"","url":"https://api.github.com/users/kenkyee","html_url":"https://github.com/kenkyee","followers_url":"https://api.github.com/users/kenkyee/followers","following_url":"https://api.github.com/users/kenkyee/following{/other_user}","gists_url":"https://api.github.com/users/kenkyee/gists{/gist_id}","starred_url":"https://api.github.com/users/kenkyee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenkyee/subscriptions","organizations_url":"https://api.github.com/users/kenkyee/orgs","repos_url":"https://api.github.com/users/kenkyee/repos","events_url":"https://api.github.com/users/kenkyee/events{/privacy}","received_events_url":"https://api.github.com/users/kenkyee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/requery/requery/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-06-21T14:37:28Z","updated_at":"2016-06-25T17:26:40Z","closed_at":null,"body":"This is probably an unusual use case for requery, but for an old Android app that already has a DB (copied from assets into a specific database file on program startup), how do you map requery objects to it?"},"comment":{"url":"https://api.github.com/repos/requery/requery/issues/comments/228560518","html_url":"https://github.com/requery/requery/issues/200#issuecomment-228560518","issue_url":"https://api.github.com/repos/requery/requery/issues/200","id":228560518,"user":{"login":"kenkyee","id":12235883,"avatar_url":"https://avatars.githubusercontent.com/u/12235883?v=3","gravatar_id":"","url":"https://api.github.com/users/kenkyee","html_url":"https://github.com/kenkyee","followers_url":"https://api.github.com/users/kenkyee/followers","following_url":"https://api.github.com/users/kenkyee/following{/other_user}","gists_url":"https://api.github.com/users/kenkyee/gists{/gist_id}","starred_url":"https://api.github.com/users/kenkyee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenkyee/subscriptions","organizations_url":"https://api.github.com/users/kenkyee/orgs","repos_url":"https://api.github.com/users/kenkyee/repos","events_url":"https://api.github.com/users/kenkyee/events{/privacy}","received_events_url":"https://api.github.com/users/kenkyee/received_events","type":"User","site_admin":false},"created_at":"2016-06-25T17:26:40Z","updated_at":"2016-06-25T17:26:40Z","body":"Here's the exception if I use type=StopMapping.class:\r\n\r\n`\r\n* Exception is:\r\norg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':mobile:compileDevDebugJavaWithJavac'.\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)\r\n\tat org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)\r\n\tat org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)\r\n\tat org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)\r\n\tat org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)\r\n\tat org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)\r\n\tat org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)\r\n\tat org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)\r\n\tat org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)\r\nCaused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: couldn't make a guess for \r\n\tat com.sun.tools.javac.main.Main.compile(Main.java:553)\r\n\tat com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)\r\n\tat com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)\r\n\tat org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:45)\r\n\tat org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:33)\r\n\tat org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:101)\r\n\tat org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:50)\r\n\tat org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:36)\r\n\tat org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:34)\r\n\tat org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)\r\n\tat org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:157)\r\n\tat org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:139)\r\n\tat org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:93)\r\n\tat com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:49)\r\n\tat org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:244)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:231)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)\r\n\t... 14 more\r\nCaused by: java.lang.IllegalArgumentException: couldn't make a guess for \r\n\tat io.requery.com.squareup.javapoet.Util.checkArgument(Util.java:64)\r\n\tat io.requery.com.squareup.javapoet.ClassName.bestGuess(ClassName.java:159)\r\n\tat io.requery.processor.EntityNameResolver.joinEntityName(EntityNameResolver.java:68)\r\n\tat io.requery.processor.EntityGenerator.lambda$generateJunctionType$27(EntityGenerator.java:819)\r\n\tat io.requery.processor.EntityGenerator.generateJunctionType(EntityGenerator.java:819)\r\n\tat io.requery.processor.EntityGenerator.lambda$generateAttribute$25(EntityGenerator.java:754)\r\n\tat io.requery.processor.EntityGenerator.generateAttribute(EntityGenerator.java:749)\r\n\tat io.requery.processor.EntityGenerator.lambda$generateStaticMetadata$16(EntityGenerator.java:551)\r\n\tat io.requery.processor.EntityGenerator.generateStaticMetadata(EntityGenerator.java:528)\r\n\tat io.requery.processor.EntityGenerator.generate(EntityGenerator.java:148)\r\n\tat io.requery.processor.EntityProcessor.process(EntityProcessor.java:191)\r\n\tat org.jetbrains.kotlin.annotation.AnnotationProcessorWrapper.process(AnnotationProcessorWrapper.kt:115)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)\r\n\tat com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)\r\n\tat com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)\r\n\tat com.sun.tools.javac.main.Main.compile(Main.java:523)\r\n\t... 34 more\r\n\r\n\r\nBUILD FAILED`\r\n\r\n\r\nHere's what I get if I use type=StopMappingEntity.class:\r\n\r\n`* Exception is:\r\norg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':mobile:compileDevDebugJavaWithJavac'.\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)\r\n\tat org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)\r\n\tat org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)\r\n\tat org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)\r\n\tat org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)\r\n\tat org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)\r\n\tat org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)\r\n\tat org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)\r\n\tat org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)\r\n\tat org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)\r\n\tat org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)\r\nCaused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: couldn't make a guess for \r\n\tat com.sun.tools.javac.main.Main.compile(Main.java:553)\r\n\tat com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)\r\n\tat com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)\r\n\tat org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:45)\r\n\tat org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:33)\r\n\tat org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:101)\r\n\tat org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:50)\r\n\tat org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:36)\r\n\tat org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:34)\r\n\tat org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)\r\n\tat org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:157)\r\n\tat org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:139)\r\n\tat org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:93)\r\n\tat com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:49)\r\n\tat org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:244)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:231)\r\n\tat org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)\r\n\tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)\r\n\t... 14 more\r\nCaused by: java.lang.IllegalArgumentException: couldn't make a guess for \r\n\tat io.requery.com.squareup.javapoet.Util.checkArgument(Util.java:64)\r\n\tat io.requery.com.squareup.javapoet.ClassName.bestGuess(ClassName.java:159)\r\n\tat io.requery.processor.EntityNameResolver.joinEntityName(EntityNameResolver.java:68)\r\n\tat io.requery.processor.EntityGenerator.lambda$generateJunctionType$27(EntityGenerator.java:819)\r\n\tat io.requery.processor.EntityGenerator.generateJunctionType(EntityGenerator.java:819)\r\n\tat io.requery.processor.EntityGenerator.lambda$generateAttribute$25(EntityGenerator.java:754)\r\n\tat io.requery.processor.EntityGenerator.generateAttribute(EntityGenerator.java:749)\r\n\tat io.requery.processor.EntityGenerator.lambda$generateStaticMetadata$16(EntityGenerator.java:551)\r\n\tat io.requery.processor.EntityGenerator.generateStaticMetadata(EntityGenerator.java:528)\r\n\tat io.requery.processor.EntityGenerator.generate(EntityGenerator.java:148)\r\n\tat io.requery.processor.EntityProcessor.process(EntityProcessor.java:191)\r\n\tat org.jetbrains.kotlin.annotation.AnnotationProcessorWrapper.process(AnnotationProcessorWrapper.kt:115)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)\r\n\tat com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)\r\n\tat com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)\r\n\tat com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)\r\n\tat com.sun.tools.javac.main.Main.compile(Main.java:523)\r\n\t... 34 more\r\n`"}}
{"actor":{"display_login":"kenkyee"}}