Giter VIP home page Giter VIP logo

audao's People

audao's Issues

Extended GQL Parser: allow INSERT... SELECT... statements

Allow INSERT...SELECT... statements

INSERT INTO MyNewKind SELECT ... FROM MyOldKind WHERE ...

Keys with ids must be explicitly defined, otherwise new ids are generated:

INSERT INTO MyNewKind SELECT KEY('MyNewKind',KEY_ID(__key__)) as __key__ ...

Original issue reported on code.google.com by [email protected] on 16 Jun 2010 at 7:00

Abstract tables with enums - cannot compile DaoImpl

What steps will reproduce the problem?
1. Create abstract class having enum type
2. Generate DAO impl
3. DAO Impl class cannot be compiled:

- no import for the DTO class
- the private enum mapping is present

What is the expected output? What do you see instead?
- the private enum mapping should not be present as it is not used



Original issue reported on code.google.com by [email protected] on 24 Feb 2012 at 10:45

inheritance does not work for DAO classes

Inheritance works partially only for DTO classes,
but not for DAOs.

<table name="xy" extends="yz".../>

Reason: preprocess.xml - supercolumns do not work as expected.


Original issue reported on code.google.com by [email protected] on 11 Jun 2010 at 7:39

Batch insert operation

Batch insert can speed-up applications especially for GAE.

Iterable<MyDto> dtos = ...;
Iterable<Long> ids = dao.insertAll( dtos );

Original issue reported on code.google.com by [email protected] on 11 Jun 2010 at 7:51

Cannot compile unit tests in JDK 1.5

ant test:
 [javac] /home/vaclav/work/gaudao/trunk/modules/distro/src/test/com/spoledge/audao/test/gae/GaeTest.java:886: findAllSblob(java.util.List<byte[]>) in com.spoledge.audao.test.gae.dao.GaeGqlSimpleDao cannot be applied to (java.util.List<<nulltype>[]>)
    [javac]         assertEquals( "sblob 1, 2", 2, dao.findAllSblob( Arrays.asList( sblob1, sblob2 )).length); 
    [javac]                                           ^
    [javac] 1 error

line 886:
assertEquals( "sblob 1, 2", 2, dao.findAllSblob( Arrays.asList( sblob1, sblob2 
)).length);

This error occusrs only when using Java 1.5, when using Java 1.6, then it is 
compiled ok.

java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)

Original issue reported on code.google.com by [email protected] on 18 Feb 2011 at 7:59

SQL - foreing keys cannot be created to abstract tables

What steps will reproduce the problem?
1. abstract table A, normal table B having ref to A
2. create/drop tables script lists the foreign key B->A

What is the expected output? What do you see instead?
No foreign key created/dropped.


Original issue reported on code.google.com by [email protected] on 24 Feb 2012 at 12:02

Cannot compile generated sources when using auto-pk column with custom java name

Source:

  <table name="dto_issue_14">
      <comment>issue#14 - DaoImpl cannot be compiled - custom pk auto column</comment>
      <columns>
        <column name="custom_id" java="id">
          <type>int</type>
          <auto/>
          <pk/>
        </column>
      </columns>
    </table>

Generated as:
   ...
   dto.setId( rs.getInt( 1 ));

   return dto.getCustomId();


Expected:
   ...
   dto.setId( rs.getInt( 1 ));

   return dto.getId();




Original issue reported on code.google.com by [email protected] on 27 Jun 2013 at 10:23

Cannot compile DAO/Impl - Java column name + method params

Cannot compile generated DAO/DAOImpl when setting Java name for column and 
using it in methods:

     <columns>
        ...
        <column name="i_vlogin" java="vendorLoginId">
          <ref table="VendorLogin"/>
          <not-null/>
        </column>
      </columns> 
     <indexes>
        <index name="inx_VendorTarget_login">
          <unique/>
          <columns>
            <column name="i_vlogin"/>
          </columns>
        </index>
      </indexes>
      <methods>
        <find name="byVendorLoginId">
          <index name="inx_VendorTarget_login"/>
        </find>
      </methods>

generated code:

    public VendorTarget findByVendorLoginId( int iVlogin ) {
        return findOne( "i_vlogin=?", vendorLoginId);
    }


Original issue reported on code.google.com by [email protected] on 1 Aug 2013 at 8:17

String enum generating classes with errors

What steps will reproduce the problem?
1. Generate mysql DAO from table with following column:
<column name="bondOrder">
<type max-length="1">String</type>
<enum>
<value>S</value>
<value>D</value>
<value>T</value>
</enum>
<not-null/>
</column>


What is the expected output? What do you see instead?
In DTO impl it creates 
    public enum BondOrder {
        S,
        D,
        T
    }
with getter 
    public MoleculeBond.BondOrder getBondOrder() {
        return bondOrder;
    }

and in insert DAO method adds 
stmt.setString( 4, dto.getBondOrder().ordinal() + 1 );
instead of 
stmt.setString( 4, dto.getBondOrder().toString() );
in select DAO method
dto.setBondOrder( _MoleculeBond_BondOrders[ rs.getString( 5 ) ]);
instead of
dto.setBondOrder( BondOrder.valueOf(rs.getString( 5 )));

What version of the product are you using? On what operating system?
1.5

Please provide any additional information below.
Either documentation should be updated and this bug renamed to feature, or 
support for enum sql datatype implemented.

Original issue reported on code.google.com by [email protected] on 3 Sep 2010 at 3:11

Configurable name conversions - XML, SQL and Java

Currently the default conversion is:

  XML: my_table_or_column_name

  Java: MyTableOrColumnName
  SQL (MySQL or Oracle database): my_table_or_column_name
  GQL (GAE datastore): MyTableOrColumnName

The Java name can be explicitly set now, but nobody can set the GAE datastore's 
name. The problem is with special names like "_ah_session"

Original issue reported on code.google.com by [email protected] on 11 Jun 2010 at 7:46

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.