Apache Ibatis Postgresql selectList How It It Works

I have installed postgresql enterprise DB and created some tables

In one of the example. I see the following code.

import org.apache.ibatis.session.SqlSession;
.....
SqlSession session = sessionFactory.openSession();
.....
List list =  session.selectList("findAllData-Data", params);

What it does? findAllData-Data means what? I have only created tables in postgresql, but I don't see the table name in above code

1

1 Answer

Check up the documentation for selectList

"findAllData-Data" is the unique identifier matching the statement to use. Statements are usually defined in some mapper .xml file or in newer versions in annotation of a class, so grep your code for findAllData-Data in order to find the definition.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest