From 93f7a95b2e57ad7a74a7ba2c2e418b00adc37c09 Mon Sep 17 00:00:00 2001 From: ulrich Date: Thu, 28 Apr 2022 15:16:17 +0000 Subject: [PATCH] Link in Readme berichtigt. --- src/de/uhilger/baselink/Util.java | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/de/uhilger/baselink/Util.java b/src/de/uhilger/baselink/Util.java index d37afa7..3fff75c 100644 --- a/src/de/uhilger/baselink/Util.java +++ b/src/de/uhilger/baselink/Util.java @@ -1,6 +1,6 @@ /* * BaseLink - Generic object relational mapping - * Copyright (C) 2011 Ulrich Hilger, http://uhilger.de + * Copyright (C) 2011-2020 Ulrich Hilger, http://uhilger.de * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,13 +38,14 @@ public static final boolean DONT_INCLUDE_BLOBS = false; /** - * Generate a database access object (DAO) for a table + * Generate a database transfer object (DTO) for a table + * * @param pm an object to be used for database access * @param schemaName name of database schema that contains the table * @param tableName name of table to create DAO for - * @return java source code of DAO + * @return java source code of DTO */ - public String generateDAO(PersistenceManager pm, String schemaName, String tableName) { + public String generateDTO(PersistenceManager pm, String schemaName, String tableName) { String indentation = " "; //String indent = ""; StringBuilder code = new StringBuilder(); @@ -163,6 +164,21 @@ } /** + * Generate a database transfer object (DTO) for a table + * + * This method is kept for compatibility reasons, it maps to + * <code>generateDTO</code>. + * + * @param pm an object to be used for database access + * @param schemaName name of database schema that contains the table + * @param tableName name of table to create DAO for + * @return java source code of DTO + */ + public String generateDAO(PersistenceManager pm, String schemaName, String tableName) { + return generateDTO(pm, schemaName, tableName); + } + + /** * Get a description of the columns of a database table * * @param pm an object to be used for database access -- Gitblit v1.9.3