cancel
Showing results for 
Search instead for 
Did you mean: 

java bean model

Former Member
0 Kudos

my java beans class

public class EmailOutDetailsCommandBean {

String attachmentId = "";

String attachmentName = "";

String emailId = "";

byte[] attachment=null;

String status="";

}

while creating i get this information but the attachment is not created

[Info]: Adding modelclass: "EmailOutDetailsCommandBean", package: package net.emisolutions.model.commandbean

[Info]: Properties for the modelclass: "EmailOutDetailsCommandBean"

[Info]: Adding property "attachmentId", type: string

[Info]: Adding property "attachmentName", type: string

[Info]: Adding property "emailId", type: string

[Info]: Adding property "status", type: string

pls advice

i need a property "attachment" , type: binary

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Yzme,

This is a known limitation of NW JavaBean Model importer -- it doesn't process binary types properly.

However, there is a simple workaround:

-- Just let your model import run "as is"

-- Then in WD project drill down to imported model, then to corresponding model class and double-click to edit model class

-- In model class editor on attributes tab add new attribute with name "attachment" and type "binary"

Done.

Valery Silaev

SaM Solutions

http://www.sam-solutions.net