VS code for Angular – Setup

Step 1: Install VS Code

Step 2: Install debugger-for-chrome extension

Step 3:

Press F1 to open command prompt in VS code and execute “Tasks: Configure Task Runner Command” this will generate sample tasks.json file in .vscode directory

.vscode folder has launch.json and tasks.json files

Ensure that launch.json has “sourceMaps” : true ,

 “configurations”: [
            “type”: “chrome”,
            “request”: “launch”,
            “name”: “Launch Chrome”,
            “url”: “http://localhost:4200”,
            “sourceMaps”: true,
            “webRoot”: “${workspaceRoot}”
tasks.json file to contain
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    “version”: “0.1.0”,
    “command”: “tsc”,
    “isShellCommand”: true,
    “args”: [“-p”, “.”],
    “showOutput”: “silent”,
    “problemMatcher”: “$tsc”

Note if .vscode does not exits create manual folder in the root directory of the project and add the launch.json manually




NoSuchMethodError in javax.persistence.Table.indexes()[Ljavax/persistence/Index

URL url = Thread.currentThread().getContextClassLoader()

I’ve ran into the same problem. The question here is that play-java-jpa artifact (javaJpa key in the build.sbt file) depends on a different version of the spec (version 2.0 -> “org.hibernate.javax.persistence” % “hibernate-jpa-2.0-api” % “1.0.1.Final”).

When you added hibernate-entitymanager 4.3 this brought the newer spec (2.1) and a different factory provider for the entitymanager. Basically you ended up having both jars in the classpath as transitive dependencies.

Edit your build.sbt file like this and it will temporarily fix you problem until play releases a new version of the jpa plugin for the newer api dependency.

libraryDependencies ++= Seq(
javaJpa.exclude("org.hibernate.javax.persistence", "hibernate-jpa-2.0-api"),
"org.hibernate" % "hibernate-entitymanager" % "4.3.0.Final"

DB first – generating POJO on Ubuntu in Eclipse

At times eclipse in Ubuntu does not show up with menu items, to display the menu’s

sudo -H gedit /usr/share/applications/eclipse.desktop

Exec=ECLIPSE with Exec=env UBUNTU_MENUPROXY= eclipse