Chadowrun Online Dev Update

The DDL code I wrote before (and which Chad QA’d for me) successfully created tables:

Horde 4% mysql -u root -h dustpuppy -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 21844
Server version: 5.0.77 Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use CHADOWRUN4
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> SHOW TABLES;
+-------------------------+
| Tables_in_CHADOWRUN4    |
+-------------------------+
| ADEPT_POWER             |
| ARMOR                   |
| CHARACTER               |
| CHARACTER_ADEPT_POWERS  |
| CHARACTER_ARMOR         |
| CHARACTER_CYBERWARE     |
| CHARACTER_MELEE_WEAPON  |
| CHARACTER_RANGED_WEAPON |
| CHARACTER_SKILL         |
| CHARACTER_SPELL         |
| CHARACTER_VEHICLE       |
| CONTACT                 |
| CYBERWARE               |
| MELEE_WEAPON            |
| PLAYER                  |
| QUALITY                 |
| RANGED_WEAPON           |
| SKILL                   |
| SPELL                   |
| SPIRIT                  |
| VEHICLE                 |
+-------------------------+
21 rows in set (0.00 sec)

Those tables translated to Java Entities thanks to the NetBeans IDE.  After an afternoon of debugging and tweaking, all my JUnit tests pass:

100% Successful on all the JUnit tests for my entities

100% Successful on all the JUnit tests for my entities

I’ma do a test deploy to the JBoss server on dustpuppy.  I previously verified this by deploying a blank J2EE (EAR) app to the JBoss server and having it come back with the classic “Hello, World!”  So if this fails, I know it’s something that I screwed up and not something wrong with the JRE, Servlet container, or Application Server platform.

 

UPDATE:  The deployment was successful.  I don’t have any code to CRUD these entities yet (that requires EJBs) but at least the Hibernate layer in JBoss was able to find all the entity references and connect to the DB without throwing exceptions:

Deployment Success to JBoss AS

Deployment Success to JBoss AS

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: