Share

PHP Class Generator Eclipse plug-in

Tracker: Bugs

5 Plugin doesn't update after a table change - ID: 2790202
Last Update: Comment added ( hotzst )

I am having the following issue with the Plugin. I contacted Andi and he
was unable to replicate my issue. Here are my settings:

Windows XP SP3
MySQL 5.1
All-in-One Eclipse PDT from Zend
Eclipse 3.4

The error:

This is what I did ...

1. I created a table "test" in an existing database.
2. The table is based on the sql below
CREATE TABLE test (
id INT UNSIGNED NOT NULL AUTO_INCREMENT
, user_id INT UNSIGNED NOT NULL
, submit_date DATETIME
, is_approved BOOLEAN NOT NULL DEFAULT 0
, is_primary BOOLEAN NOT NULL DEFAULT 0
, is_active BOOLEAN DEFAULT 0
, file_name VARCHAR(100)
, file_size_in_kb INT UNSIGNED
, PRIMARY KEY (id)
, INDEX (user_id)
);
3. I created a new class based on the template I was using: test1.php. I
had
downloaded this template from either your site or the IBM article that
discusses your plugin. I don't recall which.
4. I renamed the "file_size_in_kb" column in the "test" table to
"size_of_file"
5. I created a new class based on the template I was using: test2.php.
You'll notice the class file references the old column name
"file_size_in_kb"


bsteinex ( bsteinex ) - 2009-05-11 17:06

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )

Date: 2009-10-25 13:58
Sender: hotzstProject AdminAccepting Donations

Moved to https://sourceforge.net/apps/trac/codegenjava/ticket/80


Date: 2009-05-11 17:12
Sender: bsteinex

I guess I forgot to write the error. If I create a class using the plugin
and then make a change to the table the plugin uses the previous table
information. In the example above I created a class based on the table
"test". I then renamed the column "file_size_in_kb" to be "size_of_file"
and ran the plugin. The class file created, "test2.php" references the old
column name "file_size_in_kb" instead of the new one.


Attached Files ( 3 )

Filename Description Download
exampleTemplate.xml The template Download
test1.php The first class file created Download
test2.php The second class file created Download

Changes ( 6 )

Field Old Value Date By
status_id Open 2009-10-25 13:58 hotzst
allow_comments 1 2009-10-25 13:58 hotzst
close_date - 2009-10-25 13:58 hotzst
File Added 326602: test2.php 2009-05-11 17:08 bsteinex
File Added 326601: test1.php 2009-05-11 17:08 bsteinex
File Added 326599: exampleTemplate.xml 2009-05-11 17:06 bsteinex