private void populateRelations() {
        RelationsDao relationsDao = new RelationsDao();
        List<Object[]> list = relationsDao.findRelations();
        DefaultTableModel tableModel = new DefaultTableModel() {

            @Override
            public Class getColumnClass(int col) {
                switch (col) {
                    case 0:
                        return BigInteger.class;
                    case 1:
                        return String.class;
                    case 2:
                        return String.class;
                    case 3:
                        return BigInteger.class;
                    case 4:
                        return String.class;
                    case 5:
                        return BigInteger.class;
                    case 6:
                        return String.class;
                    case 7:
                        return String.class;
                }
                return null;
            }

            @Override
            public boolean isCellEditable(int row, int column) {
                return false;
            }
        };
        tableModel.setColumnIdentifiers(new Object[]{"Src id", "Src word", "Src type", "Id", "Relation", "Dst id", "Dst word", "Dst type"});
        for (Object[] row : list) {
            tableModel.addRow(row);
        }
        relationsGrid.setModel(tableModel);
        relationsGrid.repaint();

    }