New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To support the query operation in extends model class #341

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
1 participant
@kozake

kozake commented Feb 26, 2015

Example:

@table(name = "T_TEST")
public class TestBase extends Model {...}

public class Test extends TestBase {...}

// before modify
new Select().from(Test.class).toSql() => SELECT * FROM test

Error because test TABLE not found.

//after modify
new Select().from(Test.class).toSql() => SELECT * FROM T_TEST

kozake
To support the query operation in extends model class
Example:

@table(name = "T_TEST")
public class TestBase extends Model {...}

public class Test extends TestBase {...}

// before modify
new Select().from(Test.class).toSql() => SELECT * FROM test

Error because test TABLE not found.

//after modify
new Select().from(Test.class).toSql() => SELECT * FROM T_TEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment