Archive for Uncategorized

Another Day Closer

Had a torrid morning with build problems on the laptop. When the build environment isn’t setup correctly it really gets very ugly. Needed to integrate David’s latest work into my build aswell just to add some spice.

In the afternoon did some more bug fixing on the CMS we’re over 90 of them now.. but i hope we’re almost there! :)

David started re-working the shopfront GUI to give it a more professional look and feel and has achieved some instant results in that department.

Was speaking with the other brokerage firm again today and they were impressed by the presentation we sent them. I’d said we would be in touch mid May to setup a meeting for the end of May to give them a demo of what can be done.

Looking forward to tomorrow and starting a fresh all n all I’ve produced a pretty measly output these past couple of days and am looking forward to having a more enjoyable and productive day tomorrow

Leave a Comment

Broken ftrenq link

It appears I have broken somehow the one to one relationship between ftrenq and climas in relation to the id of ftrenq being set.
org.springframework.orm.hibernate3.HibernateSystemException: identifier of an instance of com.zeninvent.dmib.business.Ftrenq was altered from 0 to 5053; nested exception is org.hibernate.HibernateException: identifier of an instance of com.zeninvent.dmib.business.Ftrenq was altered from 0 to 5053
I think it has something to do with my change a few days ago where i switched on the proxy on Climas

Leave a Comment

More Messy Data

Currently working on being able to switch between client partners on the application.
Example: I look at Mr Bloggs on the system and there is a link from Mr Bloggs to Mrs Bloggs.
This is a useul idea as it cuts down on having to re-enter client informatio such as address etc…
And I have utlised an existing link in the old data model which links a clientKey with another clientKey.. However, yet again the data looks to be inaccuratley entered as some clientKeys link to clients who are not partners.. some cleaning up will need to be done on the data by Ruth Dermot’s admin to make this a valueable link in the system for existing client partnerships

Leave a Comment

Errors, Success, Interceptors & Transactions

Spent today working on linking new policies to existing customers. Such an action requires the update of three sperate tables.
While under a traditional style web application tranactional such work would ideally be carried out by a trigger.
However, as we are using hibernate & spring there is an altogether different way of handling this situation.
The standard DAO bean class reference is changed to utlise the springframework interceptor and the DAO bean becomes a proxy to the DAOTarget.  When a call to a method defined in transactionAttributes is made on the proxy, the proxy uses the transactionManager to set up the transaction and calls the appropriate method on the target. If the traget method thorws an exception, the proxy instructs the transaction manager to roll back the active transaction else the transaction is committed.
The beauty of this implemention I see is that there is no change required to the DAO code to “setup” a transaction you just write the code as if there was no transaction.
code snippet:

<bean id=“policyDAO” class=“org.springframework.transaction.interceptor.TransactionProxyFactoryBean”>

<property name=“transactionManager”><ref bean=“transactionManager”/></property>

<property name=“target”><ref local=“policyDAOTarget”/></property>

<property name=“transactionAttributes”>

<props>

<prop key=“save”>ISOLATION_SERIALIZABLE</prop>

</props>

</property>

</bean>

<bean id=“policyDAOTarget” class=“com.zeninvent.dmib.db.hibernate.HibernatePolicyDAO”>

<property name=“hibernateTemplate”><ref bean=“hibernateTemplate”/></property>

</bean>

It looks nice & simple now but it’s taken me a day to figure out with a log file 1763784 lines long..thats 34 mb… Thank you tomcat…

HD14 Tomorrow – Agenda

http://gaffneykev.no-ip.info/ca400blog/Docs/Meeting%20HD14%20Agenda.doc

Some screenshots of the latest updates to the GUI after DM05:

http://gaffneykev.no-ip.info/ca400blog/Docs/main.JPG

http://gaffneykev.no-ip.info/ca400blog/Docs/policy.JPG

David today also made good progress on hooking into best advices quotation system after they setup a test account for us.

My Spring book proved pretty useful on helping with the transactions and then a couple of links on the net gave me some pointers for making hibernate “Spring” off ;) the same sheet..

http://www.shoesobjects.com/blog/2004/11/21/1101083542880.html

http://www.onjava.com/pub/a/onjava/2005/05/18/swingxactions.html?page=1

http://www.zabada.com/technology/Wiki.jsp?page=SpringAndHibernate

http://forum.springframework.org/showthread.php?t=15875

We are up to 26 issues now in the issueTracker with 9 active

http://gaffneykev.no-ip.info:82/IssueTracker

Leave a Comment

Week Summary

This week we spent most of our time re-foucsing after DM05 last week.
 
Now that we have some feedback from Dermot we spent most of week trying to incorperate that into the system, as well as figuring out the missing customer problem(see posts below).
 
There has had to be quite a bit of re-factoring too. Last week when we gave the demo and we had a number of dups for certain clients(see post called Real Life) Dermot was quickly able to tell us that this was because a client could have a number of policies.
 
Turns out the table named client isn’t really a “client” table afterall at least in the sense we were expecting it to be. We found another table called Climas which it turns out is the real client table.. however the client table which has duplicate information stored in it with the Climas table is required to link a Client to poloices – its really quite a mess.
 
Anyway with that refactoring now compelte the grids & searches are now running off the new Climas table and we can retrieve policies for clients as well.
 
Tomorrow ill hope to complete the new policies tab allowing for policies to be created and edited.
 
David has been working on Acegi(security) and shopfront componets & from our conversations accross the room and the demos he has shown me it’s shaping up nicely.
 
Another issue that has now popped up is the becuase the Climas table has a number of more rows the query to retrieve all customers from the database is taking longer.
However, more importantly my HQL query to retreive a customer policy list is taking some time as it has to work accross three tables each with a couple of thousand rows. I’ve started an issue in the issuetracker on this.

Leave a Comment

More on missing customers

After another response where we were being told they could see these customers which we knew didn’t exist I had to prove the point a bit further…
 
“Hi Dermot,

Just logged into your access database and ran the phone email query to compare against the missing customer list we sent you.

For example:

xxxx xxxx
xxxxx xxxxx
xx xxx
xxxx xxx
xxx xxx
xxxx xxxx
xxxx xxxx
xxx xxx
xxxx xxx

Do not show up in the phone email query

Are you running a different query to see them?”

 
As per the posts below the phone & email query I am referring to is query which reefers to the main client table which is where the customers are missing from.
 
This missing client information is available in other tables and can be viewed. However when you to run a SELECT from Mr Regulator on the existing system for all clients you would come up 471 clients short

Leave a Comment

471 Missing Customers

Hi Dermot,
We have been working on your database today & have a question
In the attached excel sheet there is a list of 471 customers, who do not appear to have client keys and therefore do not appear in your update phone and email list that you showed us yesterday.
Can you explain?
I have removed all columns except the clients first and second names for privacy.
Cheers,
Kevin & David

Leave a Comment

DM05

Dermot got back to us last night and we have setup a meeting for Friday @ two o’clock to deliver the 1st release of the Customer Management System to him

Leave a Comment

svn & eclipse

Our good friend in CASE3 Patrick helped us to get the subeclipse plugin to connect to our SVN repo..

Leave a Comment

New Directions

Two major items commenced today while David was working on setting up source control.
Started the user manual for relase one:
Started writing JUnits(a TestCase followed by a fixture & TestSuite) for the java classes
bello!

Leave a Comment

Older Posts »