KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: franklinr on December 03, 2013, 02:11:42 pm

Title: custom tables, torque and konakart
Post by: franklinr on December 03, 2013, 02:11:42 pm
I'm using konakart but my application needs some other custom tables so I've configured torque to generate the classes for those tables in the same database that the rest of my konakart tables are in.  Konakart already initializes torque with the database connection parameters I want to use but if I attempt to connect to the custom table with torque, I'm getting a null pointer exception on the torque connection.  Is there some way to get the torque connection from konakart and set it appropriately for the custom tables?
Title: Re: custom tables, torque and konakart
Post by: julie on December 03, 2013, 03:58:04 pm
If you access these tables from KonaKart (i.e. a customized manager or the custom engine) then you should be fine.

We provide an example under KonaKart\custom\database and some code that uses it under KonaKart\java_api_examples\src\com\konakart\apiexamples\CustomSchemaExample.java.
Title: Re: custom tables, torque and konakart
Post by: franklinr on December 04, 2013, 02:51:19 pm
Thanks!  Which version is CustomSchemaExample.java in? I've searched under 6.5.1.0 and 7.1.1.1
Title: Re: custom tables, torque and konakart
Post by: julie on December 05, 2013, 05:42:25 am
I've just checked but I'm afraid it's only supplied with the Enterprise version of KonaKart.
Title: Re: custom tables, torque and konakart
Post by: franklinr on December 06, 2013, 02:33:49 pm
Interesting. Thanks for the help.  Konakart probably isn't worth using for me if it's that difficult to try and run torque on custom tables.
Title: Re: custom tables, torque and konakart
Post by: julie on December 07, 2013, 05:41:17 am
It's not a difficult thing to do once you've installed the Enterprise Extensions.