Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

works on play-1.2.2? #7

Open
potatosh opened this issue Aug 8, 2011 · 15 comments
Open

works on play-1.2.2? #7

potatosh opened this issue Aug 8, 2011 · 15 comments

Comments

@potatosh
Copy link

potatosh commented Aug 8, 2011

Does db-1.1.1 works completely on play-1.2.2, or is there the release plan of db-1.2?

@pepite
Copy link
Owner

pepite commented Aug 8, 2011

Hi,

It should work. If not can you report a bug?

Thanks

Nicolas
On Aug 8, 2011, at 6:50 AM, potatosh wrote:

Does db-1.1.1 works completely on play-1.2.2, or is there the release plan of db-1.2?

Reply to this email directly or view it on GitHub:
#7

@dsheng
Copy link
Collaborator

dsheng commented Aug 19, 2011

Hi Nicolas,

db-1.1.1 failed to work in play-1.2.2, exceptions raised as the follow:

Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.mapping.SimpleValue.(Lorg/hibernate/mapping/Table;)V

Thanks

Dsheng

@dsheng
Copy link
Collaborator

dsheng commented Aug 21, 2011

Hi All,

I resolved this issue for play-1.2.2

1, fixed hibernate-tools JavaTypeFromValueVisitor.java 's method as follow:
public Object accept(OneToMany value) {
//return value.getAssociatedClass().getClassName();
return value.getReferencedEntityName();
}

2, copy hibernate3.jar to module/db-1.1.1/lib

that's it, works for me.

@pepite
Copy link
Owner

pepite commented Aug 23, 2011

cool, I need to upgrade the module then. Thanks

@ghost
Copy link

ghost commented Nov 11, 2011

The module still not updated.

@Cwellan
Copy link

Cwellan commented Apr 25, 2012

Hi all,

Anyone has a fix ?
I encountered the same error...

dsheng, do you have a modified hibernate-tools that works ?

Thanks in advance !

@dsheng
Copy link
Collaborator

dsheng commented Apr 25, 2012

Okay, I fork it at https://github.com/dsheng/play--database , try it.

@pepite
Copy link
Owner

pepite commented Apr 25, 2012

Do you want to be the official maintainer of this module? I can add you here and you can then update the code base and also update the module on the official playframework.org module repo.

@Cwellan
Copy link

Cwellan commented Apr 25, 2012

Dsheng, thanks a lot, i'll try !

@dsheng
Copy link
Collaborator

dsheng commented Apr 25, 2012

Hi Pepite, no problem, I'd like to maintain it if you want.

@pepite
Copy link
Owner

pepite commented Apr 25, 2012

Thanks, I added you to the repo so you should be able to push/pull do whatever you want here. I now need your open id and full name to add you as the official maintainer in the module repo. Can you send me an email with this info ([email protected]). Thanks

@Cwellan
Copy link

Cwellan commented Apr 25, 2012

Dsheng, it seems not work. When i had hibernate3.jar, an error occurs...

23:13:55,406 INFO ~ Starting C:\Users\X\Projet
23:13:55,411 INFO ~ Module db is available (C:\play-1.2.4\modules\db-1.1.1)
23:13:56,043 WARN ~ You're running Play! in DEV mode
23:13:56,470 INFO ~ Iterating on arguments, args.length = 0
23:13:56,470 INFO ~ Importer will use db.driver = com.mysql.jdbc.Driver
23:13:56,470 INFO ~ Importer will use db.user = user
23:13:56,471 INFO ~ Importer will use db.password
23:13:56,471 INFO ~ Importer will use db.url = jdbc:mysql://localhost/test
23:13:57,913 INFO ~ DB metadata reading done.
23:13:57,913 INFO ~ POJO generation enabled.
23:13:57,938 INFO ~ Starting POJO Exporter ...
23:13:58,223 ERROR ~

@dsheng
Copy link
Collaborator

dsheng commented Apr 26, 2012

Hi Cwellan, I update hibernate-tools.jar and some pojo ftl files, you can test it again, I only test it in play 1.2.3, It works!.

@Cwellan
Copy link

Cwellan commented Apr 26, 2012

Hi,

Thank you, i'll test with play 1.2.4 first !

@Cwellan
Copy link

Cwellan commented Apr 26, 2012

OH MY GOD ! THAT WORKS !!!!!
You save my life ! =D
You're an amazing developper !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants