Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > XDoclet - Composite-id

Reply
Thread Tools

XDoclet - Composite-id

 
 
fredzep
Guest
Posts: n/a
 
      08-29-2006
Hi, I'm trying to create a compost primary key and this error is
raised:

SEVERE: Invoking method failed:
xdoclet.modules.hibernate.HibernateTagsHandler.ifH asCompositeId,
line=169 of template file
....
Caused by: java.lang.NullPointerException

My code:


public class AcessoId implements Serializable{

// <editor-fold defaultstate="collapsed" desc=" Property: String
id_usuario ">
private String id_usuario;
/**
* @hibernate.property
* column="id_usuario"
* @hibernate.column
* name="id_usuario"
*/
public String getId_usuario() {
return id_usuario;
}
public void setId_usuario(String id_usuario) {
this.id_usuario = id_usuario;
}
// </editor-fold>

// <editor-fold defaultstate="collapsed" desc=" Property: String
cod_sist ">
private String cod_sist;
/**
* @hibernate.property
* column="cod_sist"
* @hibernate.column
* name="cod_sist"
*/
public String getCod_sist() {
return cod_sist;
}
public void setCod_sist(String cod_sist) {
this.cod_sist = cod_sist;
}
// </editor-fold>
}


package custom.entities ;
/**
*
*
* @hibernate.class
* table="acesso"
*
*/
public class Acesso {

// <editor-fold defaultstate="collapsed" desc=" PrimaryKey:
custom.entities.AcessoId acessoId ">
private custom.entities.AcessoId acessoId;
/**
* @hibernate.id
* generator-class="assigned"
*/
public custom.entities.AcessoId getAcessoId () {
return acessoId;
}
public void setAcessoId (custom.entities.AcessoId acessoId) {
this.acessoId = acessoId;
}
//</editor-fold>


}
What's happening?

Thank's

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maven2 and XDoclet : org.xdoclet.plugin.web.TaglibPlugin don't generate TLD inherited attributes Greg Java 0 05-17-2006 07:37 AM
Session facade with xdoclet Michael Meyer Java 0 10-16-2003 12:00 PM
n-m relationship with xdoclet Michael Meyer Java 0 08-23-2003 05:59 PM
Xdoclet To-do list problems Linus Nikander Java 0 08-10-2003 05:32 PM
XDoclet, JBOSS-AOP Example3 X_AWemner_X Java 0 08-07-2003 04:18 PM



Advertisments