Re: GWT with JPA located in a separate project
Or, instead of packaging your core project to add the JAR as a dependency to the GWT project, you can have a project dependency in Eclipse; but then you have to add the core project's src/ folder to the classpath when launching the DevMode or the Compiler (for the GWT project); that is, by manually editing the launch configurations. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT with JPA located in a separate project
Even if you did include source it probably would fail to compile due to the JPA annotations. This is why the EntityProxy API was created in 2.1. I suggest that you use EntityProxy and RequestFactory in order to get your stuff to work. http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT with JPA located in a separate project
Thanks, paxdei! It looks like I'm missing a step. I've added the gwt.xml file in the core project, and added an inherit into the GWT project, but I still get errors on the inherit. Is there something else I need to do? Do I need to: * Add a gwt compile step in the core project? * Add the core jar to the GWT project? I'm missing the step which links the two projects together. On Jan 1, 1:56 pm, paxdei paxdei1...@gmail.com wrote: Hello, you will probably need a separate gwt.xml module definition that points to the source package of your pojos I use to do it this way: 1. Create a Pojo.gwt.xml in your gwt project/org/mysite/core that contains a source path=model/ tag 2. In your main module definition, inherit this new org.mysite.core.Pojo module The gwt compiler will now be able to find the sources of your classes in org.mysite.core.model On 30 Dez. 2010, 19:10, Sagadon sagadongafri...@gmail.com wrote: I'm trying to get GWT to pass POJOs created by MyBatis. The data objects are in a separate project, due to overall application complexity, and I'm trying to use the data objects on the client side. What this means is the source code for the data objects is not within the same project as GWT, and the gwtc ant target fails. The error I get is: No source code is available for type org.mysite.core.model.Person; did you forget to inherit a required module? How can I setup the ant target / IntelliJ project so that it recognizes either: a) the model jar file contains the source code, or b) the relative path to the source folder for the other project? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT with JPA located in a separate project
The core objects need to be GWT-compiled along with and at the same time as the rest of the GWT application. Therefore the source needs to be available to the GWT compiler. From what I've heard, you should be able to package the source files (and the .gwt.xml file) in the core jar and the compiler can find them there, but I haven't tried it myself. Then, yes, the core jar does have to be added to the GWT project. The core project does not need a separate GWT-compile step. -Brian On Tue, Jan 4, 2011 at 11:55 AM, Sagadon sagadongafri...@gmail.com wrote: Thanks, paxdei! It looks like I'm missing a step. I've added the gwt.xml file in the core project, and added an inherit into the GWT project, but I still get errors on the inherit. Is there something else I need to do? Do I need to: * Add a gwt compile step in the core project? * Add the core jar to the GWT project? I'm missing the step which links the two projects together. On Jan 1, 1:56 pm, paxdei paxdei1...@gmail.com wrote: Hello, you will probably need a separate gwt.xml module definition that points to the source package of your pojos I use to do it this way: 1. Create a Pojo.gwt.xml in your gwt project/org/mysite/core that contains a source path=model/ tag 2. In your main module definition, inherit this new org.mysite.core.Pojo module The gwt compiler will now be able to find the sources of your classes in org.mysite.core.model On 30 Dez. 2010, 19:10, Sagadon sagadongafri...@gmail.com wrote: I'm trying to get GWT to pass POJOs created by MyBatis. The data objects are in a separate project, due to overall application complexity, and I'm trying to use the data objects on the client side. What this means is the source code for the data objects is not within the same project as GWT, and the gwtc ant target fails. The error I get is: No source code is available for type org.mysite.core.model.Person; did you forget to inherit a required module? How can I setup the ant target / IntelliJ project so that it recognizes either: a) the model jar file contains the source code, or b) the relative path to the source folder for the other project? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT with JPA located in a separate project
Hello, you will probably need a separate gwt.xml module definition that points to the source package of your pojos I use to do it this way: 1. Create a Pojo.gwt.xml in your gwt project/org/mysite/core that contains a source path=model/ tag 2. In your main module definition, inherit this new org.mysite.core.Pojo module The gwt compiler will now be able to find the sources of your classes in org.mysite.core.model On 30 Dez. 2010, 19:10, Sagadon sagadongafri...@gmail.com wrote: I'm trying to get GWT to pass POJOs created by MyBatis. The data objects are in a separate project, due to overall application complexity, and I'm trying to use the data objects on the client side. What this means is the source code for the data objects is not within the same project as GWT, and the gwtc ant target fails. The error I get is: No source code is available for type org.mysite.core.model.Person; did you forget to inherit a required module? How can I setup the ant target / IntelliJ project so that it recognizes either: a) the model jar file contains the source code, or b) the relative path to the source folder for the other project? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT with JPA located in a separate project
I'm trying to get GWT to pass POJOs created by MyBatis. The data objects are in a separate project, due to overall application complexity, and I'm trying to use the data objects on the client side. What this means is the source code for the data objects is not within the same project as GWT, and the gwtc ant target fails. The error I get is: No source code is available for type org.mysite.core.model.Person; did you forget to inherit a required module? How can I setup the ant target / IntelliJ project so that it recognizes either: a) the model jar file contains the source code, or b) the relative path to the source folder for the other project? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.