I am having even more fundamental problems. I get a NullPointerException in the following line in my DaoBase:
public Object create(final int transform, final com.sapient.trade.Trade trade) { if (trade == null) { throw new IllegalArgumentException( "Trade.create - 'trade' can not be null"); } Object identifier = this.getHibernateTemplate().save(trade); <-- NullPointerException here trade.setId((java.lang.Long)identifier); return this.transformEntity(transform, trade); } Here's my simple test which tries to call the Dao: public void testCreateTrade() throws Exception { TradeDao tradeDao = new TradeDaoImpl(); tradeDao.create(this.trade); } What could I be doing wrong? _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3448#3448 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user