morphia icon indicating copy to clipboard operation
morphia copied to clipboard

Using GWT with Morphia?

Open hegsie opened this issue 13 years ago • 10 comments

I was wondering if anyone is actually using the GWT plugin jar with Morphia, as I've been trying to get it working and no matter the configuration it doesn't work, it keeps complaining about missing source code for ObjectId. Does anyone have a working example of using Morphia with GWT or is the plugin no longer supported?

hegsie avatar Aug 21 '13 16:08 hegsie

We have been using morphia with Gwt in our project for more than a year. There is working fork https://github.com/ismetozalp/morphia

@evanchooly please take a look , changes are https://github.com/ismetozalp/morphia/compare/mongodb:master...master

ismetozalp avatar Aug 29 '13 11:08 ismetozalp

Wow thankyou for that, it will simplify my codeline dramatically, are you guys just building it yourselves or do you know if it has an official maven location for downloading the jars?

hegsie avatar Aug 29 '13 14:08 hegsie

Actually we just created the fork after we saw your ticket here to provide a solution to gwt users. Its better to mongodb/morphia guys to merge our fork so that everybody can benefit easly. Unfortunatally we only have private maven repository so i can nit give you a link, but you can clone yourself and built from it. But if you need the jar file i can send you.

ismetozalp avatar Aug 29 '13 15:08 ismetozalp

I'm not a GWT guy so I'm not even sure why GWT needs a special module. My guess is it's something to do with the serialization. I'm happy to accept any pull requests on it but i'll probably just need a bit of guidance on the impact of the changes since I have no context in which to evaluate them.

evanchooly avatar Aug 29 '13 15:08 evanchooly

I would be happy to assist you with gwt if you need. Yes problem is with serialization. Some files can not be serialized on client side so gwt need emulation files and custom field serializers.

ismetozalp avatar Aug 29 '13 16:08 ismetozalp

It would be great to get GWT support working in Morphia, for the time being I've downloaded and built a jar locally, thanks again :)

hegsie avatar Aug 29 '13 16:08 hegsie

Please file a pull request and we can work on getting things patched up here.

evanchooly avatar Aug 29 '13 16:08 evanchooly

Ok Justin i will send a request.

ismetozalp avatar Aug 29 '13 19:08 ismetozalp

You are welcome, happy to assist.

ismetozalp avatar Aug 29 '13 19:08 ismetozalp

Merged @ismetozalp's pull request that fixes this issue. hopefully.

evanchooly avatar Aug 30 '13 15:08 evanchooly