Why do you have to use _ in your variable names? That's not a
recommend way of constructing POJOs and I don't think it's a good idea
to promote bad practices in AppFuse. ;-)
Matt
On 6/28/07, Msarda <[EMAIL PROTECTED]> wrote:
Here is my model object....I have generated only this object....(also two
other model objects for many to many relationship)
Every thing else i got generated by maven mvn appfuse:install command.
i think this may be because of underscore (_) before variable name...but i
have to use in this way only...
package au.com.suncorp.model;
import org.appfuse.model.BaseObject;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import java.util.Date;
import java.util.Set;
@Entity
public class Requestdao extends BaseObject{
private Long _id;
private String _title;
private String _requestorsName;
private int _requestorsExtensionNo;
private String _requestorsEmailId;
private String _LOB;
private String _iTSolutionLeadsName;
private int _iTSolutionLeadsExtensionNo;
private String _iTSolutionLeadsEmailId;
private String _typeofRequest;
private String _typeOfReqSupportNo;
private String _partOfProgram;
private String _descriptionOfWorkRequired;
private String _relatedProjectProgramActivity;
private String _quantifiedFinancialBenefits;
private String _otherBenefits;
private String _funding;
private String _impactIfChangeIsNotMade;
private String _reasonWorkRequired;
private String _priority;
private String _timingIssues;
private String _alternativeSolutions;
private Date _priorityDate;
private Set<WebAppsSystem> _systems;
private Set<AreasImpacted> _areasImpacted;
@Id @GeneratedValue(strategy=GenerationType.AUTO)
public Long get_id() {
return _id;
}
public void set_id(Long _id) {
this._id = _id;
}
public String get_title() {
return _title;
}
public void set_title(String _title) {
this._title = _title;
}
public String get_requestorsName() {
return _requestorsName;
}
public void set_requestorsName(String name) {
_requestorsName = name;
}
public int get_requestorsExtensionNo() {
return _requestorsExtensionNo;
}
public void set_requestorsExtensionNo(int extensionNo) {
_requestorsExtensionNo = extensionNo;
}
public String get_requestorsEmailId() {
return _requestorsEmailId;
}
public void set_requestorsEmailId(String emailId) {
_requestorsEmailId = emailId;
}
public String get_LOB() {
return _LOB;
}
public void set_LOB(String _lob) {
_LOB = _lob;
}
public String get_iTSolutionLeadsName() {
return _iTSolutionLeadsName;
}
public void set_iTSolutionLeadsName(String solutionLeadsName) {
_iTSolutionLeadsName = solutionLeadsName;
}
public int get_iTSolutionLeadsExtensionNo() {
return _iTSolutionLeadsExtensionNo;
}
public void set_iTSolutionLeadsExtensionNo(int
solutionLeadsExtensionNo) {
_iTSolutionLeadsExtensionNo = solutionLeadsExtensionNo;
}
public String get_iTSolutionLeadsEmailId() {
return _iTSolutionLeadsEmailId;
}
public void set_iTSolutionLeadsEmailId(String solutionLeadsEmailId) {
_iTSolutionLeadsEmailId = solutionLeadsEmailId;
}
public String get_typeofRequest() {
return _typeofRequest;
}
public void set_typeofRequest(String request) {
_typeofRequest = request;
}
public String get_descriptionOfWorkRequired() { return
_descriptionOfWorkRequired;
}
public void set_descriptionOfWorkRequired(String ofWorkRequired) {
_descriptionOfWorkRequired = ofWorkRequired;
}
public String get_relatedProjectProgramActivity() {
return _relatedProjectProgramActivity;
}
public void set_relatedProjectProgramActivity(String
projectProgramActivity) {
_relatedProjectProgramActivity = projectProgramActivity;
}
public String get_quantifiedFinancialBenefits() {
return _quantifiedFinancialBenefits;
}
public void set_quantifiedFinancialBenefits(String financialBenefits) {
_quantifiedFinancialBenefits = financialBenefits;
}
public String get_otherBenefits() {
return _otherBenefits;
}
public void set_otherBenefits(String benefits) {
_otherBenefits = benefits;
}
public String get_funding() {
return _funding;
}
public void set_funding(String _funding) {
this._funding = _funding;
}
public String get_impactIfChangeIsNotMade() {
return _impactIfChangeIsNotMade;
}
public void set_impactIfChangeIsNotMade(String ifChangeIsNotMade) {
_impactIfChangeIsNotMade = ifChangeIsNotMade;
}
public String get_reasonWorkRequired() {
return _reasonWorkRequired;
}
public void set_reasonWorkRequired(String workRequired) {
_reasonWorkRequired = workRequired;
}
public String get_priority() {
return _priority;
}
public void set_priority(String _priority) {
this._priority = _priority;
}
public String get_timingIssues() {
return _timingIssues;
}
public void set_timingIssues(String issues) {
_timingIssues = issues;
}
public String get_alternativeSolutions() {
return _alternativeSolutions;
}
public void set_alternativeSolutions(String solutions) {
_alternativeSolutions = solutions;
}
public String toString() { return null; }
public boolean equals(Object o) { return false; }
public int hashCode() { return 0; }
public String get_partOfProgram() {
return _partOfProgram;
}
public void set_partOfProgram(String ofProgram) {
_partOfProgram = ofProgram;
}
public Date get_priorityDate() {
return _priorityDate;
}
public void set_priorityDate(Date date) {
_priorityDate = date;
}
public String get_typeOfReqSupportNo() {
return _typeOfReqSupportNo;
}
public void set_typeOfReqSupportNo(String ofReqSupportNo) {
_typeOfReqSupportNo = ofReqSupportNo;
}
@ManyToMany
public Set<AreasImpacted> get_areasImpacted() {
return _areasImpacted;
}
public void set_areasImpacted(Set<AreasImpacted> impacted) {
_areasImpacted = impacted;
}
@ManyToMany
public Set<WebAppsSystem> get_systems() {
return _systems;
}
public void set_systems(Set<WebAppsSystem> _systems) {
this._systems = _systems;
}
}
mraible wrote:
>
> I don't understand your problem very well. Maybe you can post some
> code that will make things easier to understand? You also might
> consider writing a unit test for your issue to see what tier it's
> happening in.
>
> Matt
>
> On 6/28/07, Msarda <[EMAIL PROTECTED]> wrote:
>>
>> I have one model object....when i am trying to save new entry in
>> table...i am
>> getting everything null in the command object...
>> But when i am trying to edit automatically generated values by maven....i
>> am
>> getting those values in command object....
>> I don't know whats wrong happening when trying to add new row....
>> --
>> View this message in context:
>> http://www.nabble.com/Command-object-null-tf3997586s2369.html#a11353330
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Command-object-null-tf3997586s2369.html#a11354557
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
http://raibledesigns.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]