hibernate

Samyukta A <[email protected]> Tue, 27 Jan 2004 09:05:46 -0800 (PST)
Newsgroups gmane.comp.java.xdoclet.devel,gmane.comp.java.xdoclet.user,gmane.comp.java.xdoclet.announce
Message-ID <[email protected]>
--0-651844990-1075223146=:96730
Content-Type: text/plain; charset=us-ascii


Hi

.Quick Hibernate qn....Thank in advance for your reply!

I get the following error though my AnalysisData.java class 

file has a constructor.any help appreciated. thanks

AnalysisData.java class 

public class AnalysisData {

private long id = -1l;

private TestData data;

private ActivityTModule test;

private AnalysisResult result;

private int type;

private String info;

public AnalysisData() {}

net.sf.hibernate.PropertyNotFoundException: 

Object class must declare a default (no-argument) constructor reflection optimizer disabled for hibernate

 

2004-01-27 09:17:51,844 [main] INFO net.sf.hibernate.util.ReflectHelper - reflection optimizer disabled for: com.dynetics.vidrds.model.DurabilityTest, IllegalAccessError: tried to access method com.dynetics.vidrds.model.DurabilityTest.<init>()V from class com.dynetics.vidrds.model.DurabilityTestMetaClass1

net.sf.hibernate.PropertyNotFoundException: Object class com.dynetics.vidrds.model.AnalysisData must declare a default (no-argument) constructor

at net.sf.hibernate.util.ReflectHelper.getDefaultConstructor(ReflectHelper.java:304)



---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
--0-651844990-1075223146=:96730
Content-Type: text/html; charset=us-ascii

<DIV><FONT size=2>
<P>Hi</P>
<P>.Quick Hibernate qn....Thank in advance for your reply!</P>
<P>I get the following error though my AnalysisData.java class </P>
<P>file has a constructor.any help appreciated. thanks</P>
<P>AnalysisData.java class </P>
<P>public class AnalysisData {</P>
<P>private long id = -1l;</P>
<P>private TestData data;</P>
<P>private ActivityTModule test;</P>
<P>private AnalysisResult result;</P>
<P>private int type;</P>
<P>private String info;</P>
<P>public AnalysisData() {}</P>
<P>net.sf.hibernate.PropertyNotFoundException: </P>
<P>Object class must declare a default (no-argument) constructor reflection optimizer disabled for hibernate</P>
<P>&nbsp;</P>
<P>2004-01-27 09:17:51,844 [main] INFO net.sf.hibernate.util.ReflectHelper - reflection optimizer disabled for: com.dynetics.vidrds.model.DurabilityTest, IllegalAccessError: tried to access method com.dynetics.vidrds.model.DurabilityTest.&lt;init&gt;()V from class com.dynetics.vidrds.model.DurabilityTestMetaClass1</P>
<P>net.sf.hibernate.PropertyNotFoundException: Object class com.dynetics.vidrds.model.AnalysisData must declare a default (no-argument) constructor</P>
<P>at net.sf.hibernate.util.ReflectHelper.getDefaultConstructor(ReflectHelper.java:304)</P></FONT></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! SiteBuilder - Free web site building tool. <a href="http://us.rd.yahoo.com/evt=21608/*http://webhosting.yahoo.com/ps/sb/"><b>Try it!</b></a>
--0-651844990-1075223146=:96730--


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn