author.create(a);
author.refresh(a);
}
}
Publisher p = new Publisher();
if(!fPublisher.getValue().trim().isEmpty()) {
p = p.getByName(conn, publisher,
fPublisher.getValue().trim());
Integer publisher_id = p.getId();
if(publisher_id != 0 && publisher_id != null) {
if(!p.getName().equalsIgnoreCase(fPublisher.getValue().trim()))
publisher.update(p);
publisher.refresh(p);
} else {
p = new Publisher(fPublisher.getValue().trim());
publisher.create(p);
publisher.refresh(p);
}
}