Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9138589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:16:35+00:00 2026-06-17T09:16:35+00:00

I got the code public static List <Post> getPostForTopic(String topicName) { List <Post> list

  • 0

I got the code

public static List <Post> getPostForTopic(String topicName) {
    List <Post> list = find.where().eq("topic_name",topicName).findList();
    return list;
}

SQL evoluation

# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions

# --- !Ups

create table post (
text                      varchar(255))
;

create table topic (
topic_name                varchar(255) not null,
constraint pk_topic primary key (topic_name))
;

create sequence topic_seq;




# --- !Downs

SET REFERENTIAL_INTEGRITY FALSE;

drop table if exists post;

drop table if exists topic;

SET REFERENTIAL_INTEGRITY TRUE;

drop sequence if exists topic_seq;

When I run it I have Execution exception:

[PersistenceException: Query threw SQLException:Столбец "TOPIC_NAME" не найден Column "TOPIC_NAME" not found; SQL statement: select t0.text c0 from post t0 where topic_name = ? [42122-158] Bind values:[null] Query was: select t0.text c0 from post t0 where topic_name = ? ] 

I and when I type query in my h2 database console like “Select * from topic”, I got result that there is no table “TOPIC”. Help me to find misstake please

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:16:35+00:00Added an answer on June 17, 2026 at 9:16 am

    I think that you used a wrong finder.

    I bet you create your find variable with something looking like this (I actually don’t know what type you used as primary key):

     public static Finder<XXX,Post> find = new Finder<XXX,Post>(
        XXX.class, Post.class
      );
    

    whereas you should use:

     public static Finder<String,Topic> find = new Finder<String,Topic>(
       String.class, Topic.class
     );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got the following code: public static T GetCar<T>() where T : ICar {
I've got the following code: Public Delegate Sub SetStatusBarTextDelegate(ByVal StatusText As String) Private Sub
I've got the following code: import java.util.*; public class Group { public static void
i have this code: public class Test{ arrayList<String> list = new ArrayList<String>(); String[][] temp_list;
In my MVC webapplication I got the following automapper code: The configure: public static
I got tired of writing the following code: /* Commenting out irrelevant parts public
I'll make it simple, here's the code I've got. public ActionResult DeleteNonCIStaffUser(int id) {
I've got code similar to this: string s = CreateString(); if (s == )
I've got the following Java code but List.indexOf() seems to do pretty much the
I got the following model piece of code: public enum EnumTest { [Description (Enum

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.