Skip to content

Commit

Permalink
1.294 fix dao xml validate
Browse files Browse the repository at this point in the history
  • Loading branch information
panedrone committed Feb 14, 2024
1 parent ca35710 commit cf5238a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src_intellij/com/sqldalmaker/intellij/ui/IdeaCG.java
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,13 @@ public static void validate_external_dao_xml_action(Project project, VirtualFile
String dao_xml_abs_path = xml_file.getPath();
Path path = Paths.get(dao_xml_abs_path);
String dao_xml_file_name = path.getFileName().toString();
String dao_class_name = Helpers.get_dao_class_name(dao_xml_file_name);
Connection con = IdeaHelpers.get_connection(project, settings);
try {
IDaoCG gen = IdeaTargetLanguageHelpers.create_dao_cg(con, project, root_file, settings, output_dir);
try {
DaoClass dao_class = xml_parser.unmarshal(dao_xml_abs_path);
String dao_class_name = Helpers.get_dao_class_name(dao_xml_file_name);
dao_class.setName(dao_class_name);
String status = validate_single_sdm_dao(project, root_file, gen, dao_class, settings);
if (status.isEmpty()) {
IdeaMessageHelpers.add_info_to_ide_log(dao_xml_file_name, Const.VALIDATE_DAO_XML);
Expand Down

0 comments on commit cf5238a

Please sign in to comment.