Of course this one seems easy enough per Here but I added the following to my application context...
<property name="dataSource">
<ref bean="dataSource"/>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.autocommit">false</prop>
</props>
</property>
<property name="annotatedClasses">
<list>
<value>com.gleason.gt.server.model.database.PlayListEntry</value>
<value>com.gleason.gt.server.model.database.MusicFile</value>
</list>
</property>
</bean>
I still get the same error, any ideas?
UPDATE Adding Service/DAO
@Repository("musicFileDao")
public class MusicFileDAOImpl extends GroovyTimeHibernateDAOSupport{
@Transactional()
public MusicFile getMusicFile(Integer i){
@SuppressWarnings("unchecked")
List<MusicFile> returnValue = (List<MusicFile>)getHibernateTemplate().find("from MusicFile where id=?",i);
if(returnValue.size()>0){
return returnValue.get(0);
}
return null;
}
}
@Service("musicFileService")
public class MusicFileService {
@Autowired
private MusicFileDAOImpl dao;
@Transactional
public MusicFile getMusicFile(Integer i){
return dao.getMusicFile(i);
}
}
@Lob
@Column(name="file")
private byte[] file;
byteainstead.