play--database icon indicating copy to clipboard operation
play--database copied to clipboard

works on play-1.2.2?

Open potatosh opened this issue 13 years ago • 15 comments

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

potatosh avatar Aug 08 '11 04:08 potatosh

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: https://github.com/pepite/play--database/issues/7

pepite avatar Aug 08 '11 07:08 pepite

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 avatar Aug 19 '11 01:08 dsheng

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.

dsheng avatar Aug 21 '11 05:08 dsheng

cool, I need to upgrade the module then. Thanks

pepite avatar Aug 23 '11 18:08 pepite

The module still not updated.

ghost avatar Nov 11 '11 08:11 ghost

Hi all,

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

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

Thanks in advance !

Cwellan avatar Apr 25 '12 08:04 Cwellan

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

dsheng avatar Apr 25 '12 12:04 dsheng

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.

pepite avatar Apr 25 '12 12:04 pepite

Dsheng, thanks a lot, i'll try !

Cwellan avatar Apr 25 '12 12:04 Cwellan

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

dsheng avatar Apr 25 '12 12:04 dsheng

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

pepite avatar Apr 25 '12 12:04 pepite

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 ~

Cwellan avatar Apr 25 '12 20:04 Cwellan

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!.

dsheng avatar Apr 26 '12 02:04 dsheng

Hi,

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

Cwellan avatar Apr 26 '12 06:04 Cwellan

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

Cwellan avatar Apr 26 '12 06:04 Cwellan