티스토리 뷰

반응형

* 엔티티 물리 속성명이 "_CD"나 "_DIV"로 끝나면 파일로 저장하는 예제


var file = promptSaveFile();

var out = file.getOutputStream();


select(function(it) { 

return it.get("type") == "column"

}).each(function(it) {


var matcher = compilePattern(".*(_CD$|_DIV$)").matcher(it.get("physical-name"));


if (matcher.matched()) {

out.printf("%s - %s \n", it.get("table").get("physical-name"), it.get("physical-name"));

}


});


out.close()

file.openInEditor();


반응형