<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anija K A on Medium]]></title>
        <description><![CDATA[Stories by Anija K A on Medium]]></description>
        <link>https://medium.com/@anijaanilkumar97?source=rss-da209dc0ad3a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mpu8TmsQ5yjymHuX</url>
            <title>Stories by Anija K A on Medium</title>
            <link>https://medium.com/@anijaanilkumar97?source=rss-da209dc0ad3a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:44:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anijaanilkumar97/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[JPA, Hibernate, and EclipseLink: Who Does What?]]></title>
            <link>https://medium.com/@anijaanilkumar97/jpa-hibernate-and-eclipselink-who-does-what-1ed46e79a988?source=rss-da209dc0ad3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ed46e79a988</guid>
            <dc:creator><![CDATA[Anija K A]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 06:11:25 GMT</pubDate>
            <atom:updated>2026-10-22T06:35:33.868Z</atom:updated>
            <content:encoded><![CDATA[<p><em>If you have ever said “We use JPA” and someone replied “Oh, so you use Hibernate?” — this one is for you.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hLHb4cukoJdMvlvZ2-rF8w.png" /></figure><p>Let’s start with a situation that probably sounds familiar.</p><blockquote><em>“Our application uses JPA.”</em></blockquote><p>“Nice. Which provider?”</p><blockquote><em>“Hibernate.”</em></blockquote><p>And then someone else joins the conversation:</p><blockquote><em>“Wait… isn’t Hibernate JPA?”</em></blockquote><p>At this point, EclipseLink is probably sitting quietly in the corner thinking:</p><blockquote><em>“Am I invisible?” 😄</em></blockquote><p>If you have ever wondered whether <strong>JPA, Hibernate, and EclipseLink are three different names for the same thing</strong>, you are definitely not alone.</p><p>They are closely related.</p><p>But they are <strong>not the same thing</strong>.</p><p>The easiest way to remember it is:</p><blockquote><strong><em>Jakarta Persistence defines the standard. Hibernate and EclipseLink are persistence providers that implement that standard.</em></strong></blockquote><p>Once you understand that one sentence, the whole JPA/Hibernate/EclipseLink conversation becomes much easier.</p><h3>First things first: What exactly is JPA?</h3><p>Let’s start with the name most developers are familiar with: <strong>JPA</strong>.</p><p>JPA originally stood for <strong>Java Persistence API</strong>. It was the name used for the persistence specification in Java EE.</p><p>After Java EE moved to the Eclipse Foundation and became Jakarta EE, the specification was renamed <strong>Jakarta Persistence</strong>.</p><p>So today, the official specification is <strong>Jakarta Persistence</strong>.</p><p>You will still hear developers say “JPA” everywhere, though.</p><p>That’s completely normal.</p><p>Many developers use “JPA” as shorthand for the <strong>Jakarta Persistence programming model and APIs</strong>.</p><p>But there is one important distinction:</p><blockquote><strong><em>JPA/Jakarta Persistence is a specification. It is not a persistence provider.</em></strong></blockquote><p>The specification defines standard APIs and behavior for persistence and object-relational mapping.</p><p>For example:</p><pre>@Entity<br>public class Employee {</pre><pre>    @Id<br>    private Long id;</pre><pre>    private String name;</pre><pre>    // getters and setters<br>}</pre><p>The @Entity and @Id annotations are part of Jakarta Persistence.</p><p>Similarly, APIs such as:</p><pre>EntityManager<br>EntityManagerFactory<br>TypedQuery<br>PersistenceContext</pre><p>belong to Jakarta Persistence.</p><p>So far, we haven’t mentioned Hibernate.</p><p>And that is intentional.</p><h3>Okay… then who actually does the work?</h3><p>This is where <strong>persistence providers</strong> enter the picture.</p><p>Jakarta Persistence defines the contract.</p><p>A persistence provider implements that contract.</p><p>Two of the best-known providers are:</p><ul><li><strong>Hibernate</strong></li><li><strong>EclipseLink</strong></li></ul><p>So, at a high level:</p><pre>Your Application<br>                        |<br>                        v<br>             Jakarta Persistence API<br>                  (the standard)<br>                        |<br>             +----------+----------+<br>             |                     |<br>             v                     v<br>         Hibernate             EclipseLink<br>          Provider               Provider<br>             |                     |<br>             +----------+----------+<br>                        |<br>                        v<br>                     Database</pre><p>Your application talks to the <strong>Jakarta Persistence API</strong>.</p><p>The persistence provider implements the persistence functionality.</p><p>And eventually, the provider interacts with the database.</p><p>That’s the basic picture.</p><h3>So… Hibernate is JPA?</h3><p>Not quite.</p><p>Hibernate ORM is an <strong>ORM framework</strong> that provides an implementation of the Jakarta Persistence specification.</p><p>But Hibernate is not limited to Jakarta Persistence.</p><p>It also provides its own native APIs and Hibernate-specific features.</p><p>So you can think about it this way:</p><pre>Jakarta Persistence<br>                  Specification<br>                       |<br>                       | defines the standard<br>                       v<br>                Persistence API<br>                       |<br>             +---------+---------+<br>             |                   |<br>             v                   v<br>         Hibernate          EclipseLink<br>          Provider             Provider</pre><p>Or, if you prefer a non-technical analogy:</p><h3>Think of a specification as a recipe.</h3><p>The recipe says:</p><blockquote><em>“These are the ingredients and the expected result.”</em></blockquote><p>Different chefs can follow the same recipe.</p><p>One chef might be Hibernate.</p><p>Another might be EclipseLink.</p><p>The recipe is the specification.</p><p>The chef is the implementation.</p><p>And yes, sometimes the chefs add their own special sauce.</p><p>That’s where provider-specific features come in.</p><h3>What happens when I call persist()?</h3><p>This is where things get interesting.</p><p>Suppose your application has:</p><pre>entityManager.persist(employee);</pre><p>What exactly is happening?</p><p>Your application is calling the <strong>Jakarta Persistence API</strong>.</p><p>The API itself doesn’t contain a magical database connection that suddenly appears and inserts a row.</p><p>The persistence provider is responsible for implementing the behavior behind that API.</p><p>Jakarta Persistence defines a PersistenceProvider SPI for this provider integration.</p><p>Conceptually:</p><pre>Application<br>     |<br>     | entityManager.persist(employee)<br>     v<br>Jakarta Persistence API<br>     |<br>     v<br>Persistence Provider<br>     |<br>     | &quot;I&#39;ll take it from here.&quot;<br>     v<br>ORM / SQL / Database interaction<br>     |<br>     v<br>Database</pre><p>The provider may handle things such as:</p><ul><li>Entity state management</li><li>Persistence contexts</li><li>Object-relational mapping</li><li>SQL generation</li><li>Dirty checking</li><li>Relationships</li><li>Query execution</li><li>Lazy loading</li><li>Caching</li><li>Transaction-related persistence behavior</li></ul><p>Your application doesn’t need to implement all of that itself.</p><p>That’s rather the point.</p><h3>Hibernate and EclipseLink: Same contract, different implementations</h3><p>Now let’s talk about the two names that usually cause the confusion.</p><h3>Hibernate</h3><p>Hibernate ORM is a widely used ORM framework and provides an implementation of Jakarta Persistence.</p><p>You can use the standard Jakarta Persistence APIs:</p><pre>EntityManager<br>EntityManagerFactory<br>PersistenceContext<br>Query</pre><p>while Hibernate is the provider underneath.</p><p>But Hibernate also has its own APIs and functionality.</p><p>So an application can use:</p><pre>Jakarta Persistence APIs<br>        +<br>Hibernate-specific features</pre><p>The first part is standard.</p><p>The second part is Hibernate-specific.</p><p>That distinction becomes important when portability matters.</p><h3>And then there’s EclipseLink</h3><p>EclipseLink is another persistence provider that implements Jakarta Persistence.</p><p>So:</p><pre>Jakarta Persistence<br>                    Specification<br>                          |<br>              +-----------+-----------+<br>              |                       |<br>              v                       v<br>          Hibernate              EclipseLink<br>           Provider                Provider</pre><p>Both providers implement the same Jakarta Persistence specification.</p><p>But that does <strong>not</strong> mean Hibernate and EclipseLink are identical.</p><p>They have different implementations, internal architectures, optimizations, configuration options, and provider-specific functionality.</p><p>Think of two companies implementing the same standard.</p><p>The contract is shared.</p><p>The implementation is not.</p><h3>Then why do developers say “JPA” when they mean Hibernate?</h3><p>Because developers are humans.</p><p>And humans like shortcuts. 😄</p><p>In many projects, you’ll hear:</p><blockquote><em>“We’re using JPA.”</em></blockquote><p>What they often really mean is:</p><blockquote><em>“Our application uses the Jakarta Persistence APIs, and Hibernate is the provider underneath.”</em></blockquote><p>Or:</p><blockquote><em>“We’re using JPA with EclipseLink.”</em></blockquote><p>Both are perfectly understandable.</p><p>The confusion starts when we treat the names as if they describe the same thing.</p><p>They don’t.</p><h3>A simple analogy</h3><p>Here’s another way to think about it.</p><p>Imagine <strong>USB</strong>.</p><p>USB defines a standard.</p><p>Different manufacturers build devices that follow that standard.</p><p>You wouldn’t normally say:</p><blockquote><em>“USB and my USB device are the same thing.”</em></blockquote><p>Right?</p><p>The same idea applies here.</p><p><strong>Jakarta Persistence = standard</strong></p><p><strong>Hibernate = implementation/provider</strong></p><p><strong>EclipseLink = implementation/provider</strong></p><p>The standard defines the rules.</p><p>Different providers implement those rules.</p><h3>What about EntityManager?</h3><p>Here’s another common misconception.</p><p>You might write:</p><pre>EntityManager em;</pre><p>and think:</p><blockquote><em>“That’s Hibernate.”</em></blockquote><p>Nope.</p><p>EntityManager is part of the Jakarta Persistence API.</p><p>The actual implementation behind that API is provided by the persistence provider.</p><p>Conceptually:</p><pre>EntityManager<br>            Jakarta Persistence<br>                    |<br>                    v<br>          Provider implementation<br>             /              \<br>            /                \<br>      Hibernate          EclipseLink</pre><p>So when your application interacts with an EntityManager, it is programming against the standard API.</p><p>The provider supplies the actual implementation.</p><h3>Where does persistence.xml fit?</h3><p>Now we get to another familiar name:</p><p><strong>persistence.xml</strong></p><p>A persistence unit can be defined using persistence.xml:</p><pre>&lt;persistence&gt;<br>    &lt;persistence-unit name=&quot;EmployeePU&quot;&gt;<br>        ...<br>    &lt;/persistence-unit&gt;<br>&lt;/persistence&gt;</pre><p>Jakarta Persistence also allows a persistence provider to be explicitly identified.</p><p>For example:</p><pre>&lt;provider&gt;<br>    org.hibernate.jpa.HibernatePersistenceProvider<br>&lt;/provider&gt;</pre><p>The provider element is optional.</p><p>When it isn’t specified, Jakarta Persistence defines mechanisms for provider discovery and selection.</p><p>So the application doesn’t necessarily need to hard-code a provider just to use the standard persistence APIs.</p><p>That separation is one of the useful parts of the design.</p><h3>Why does this separation matter?</h3><p>At first, all of this might sound like terminology for the sake of terminology.</p><p>Why should we care?</p><p>Because <strong>separating the standard API from its implementation gives applications a degree of portability.</strong></p><p>Suppose your application uses:</p><pre>@Entity<br>@Id<br>@OneToMany<br>@ManyToOne</pre><p>and:</p><pre>EntityManager</pre><p>Those are standard Jakarta Persistence APIs.</p><p>Your application is therefore written against a standard programming model rather than directly against a specific provider.</p><p>Conceptually:</p><pre>Your Application<br>                    |<br>                    v<br>         Jakarta Persistence API<br>                    |<br>          +---------+---------+<br>          |                   |<br>          v                   v<br>      Hibernate          EclipseLink</pre><p>If your application sticks primarily to the standard APIs, it has a better chance of moving between compliant providers without major application-code changes.</p><p>But…</p><p>There is always a “but.”</p><h3>What if I use Hibernate-specific features?</h3><p>Then things change a little.</p><p>Suppose a Hibernate-specific feature solves a real problem for your application.</p><p>Use it.</p><p>There’s nothing wrong with that.</p><p>The important thing is to understand the trade-off.</p><p>You can think of portability as a spectrum:</p><pre>More provider-independent<br>          |<br>          v<br>Jakarta Persistence APIs<br>          |<br>          v<br>Provider-specific extensions<br>          |<br>          v<br>More tightly coupled to provider</pre><p>So the lesson isn’t:</p><blockquote><em>“Never use Hibernate-specific functionality.”</em></blockquote><p>The lesson is:</p><blockquote><strong><em>Know when you’re using the standard and when you’re using a provider-specific extension.</em></strong></blockquote><p>That distinction becomes especially important when migrating between providers.</p><h3>So… which one should I use?</h3><p>This is where things can get dangerous.</p><p>Someone asks:</p><blockquote><em>“Hibernate or EclipseLink — which one is better?”</em></blockquote><p>And suddenly you have a three-hour debate, seventeen browser tabs, and someone saying:</p><blockquote><em>“My benchmark says…”</em></blockquote><p>Let’s not do that here. 😄</p><p>The important point of this article isn’t to declare a winner.</p><p>Both are mature persistence providers that implement Jakarta Persistence.</p><p>The better choice depends on things such as:</p><ul><li>Your application requirements</li><li>Provider-specific features you need</li><li>Existing application dependencies</li><li>Performance characteristics</li><li>Operational requirements</li><li>Ecosystem and support</li><li>Portability requirements</li></ul><p>The first question should not necessarily be:</p><blockquote><em>“Which provider is better?”</em></blockquote><p>It should be:</p><blockquote><strong><em>“Which persistence model am I programming against, and which provider is implementing it?”</em></strong></blockquote><p>That is a much more useful question.</p><h3>The cheat sheet</h3><p>If you remember only one table from this article, make it this one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/922/1*Z_RVzXtqF0HakggL6oZIZw.png" /></figure><p>And the key distinction is:</p><blockquote><strong><em>Jakarta Persistence defines the contract. Hibernate and EclipseLink provide implementations of that contract.</em></strong></blockquote><h3>The mental model I wish everyone had</h3><p>Forget the terminology for a second.</p><p>Imagine this:</p><pre>STANDARD<br>                  Jakarta Persistence<br>                         |<br>                         |<br>              &quot;Here is the contract.&quot;<br>                         |<br>                         v<br>                    PERSISTENCE<br>                       PROVIDER<br>                    /           \<br>                   /             \<br>                  v               v<br>             Hibernate       EclipseLink<br>                  |               |<br>                  +-------+-------+<br>                          |<br>                          v<br>                       Database</pre><p>Your application primarily talks to the standard API.</p><p>The provider implements the persistence behavior.</p><p>The database is where the data ultimately ends up.</p><p>Once you see those layers separately, the terminology becomes much less confusing.</p><h3>So… are JPA, Hibernate, and EclipseLink the same thing?</h3><p><strong>No.</strong></p><p>But they are connected.</p><h3>JPA / Jakarta Persistence</h3><p>The <strong>standard persistence specification and API</strong>.</p><h3>Hibernate</h3><p>An <strong>ORM framework that provides an implementation of Jakarta Persistence</strong>, along with Hibernate-specific functionality.</p><h3>EclipseLink</h3><p>A <strong>persistence provider implementing Jakarta Persistence</strong>, with its own implementation and extensions.</p><h3>The next time someone says…</h3><blockquote><em>“We’re using JPA.”</em></blockquote><p>You can now ask:</p><blockquote><em>“Cool. Which provider?”</em></blockquote><p>And if they say:</p><blockquote><em>“Hibernate.”</em></blockquote><p>You can confidently reply:</p><blockquote><em>“Ah. Jakarta Persistence API with Hibernate as the provider.”</em></blockquote><p>And if someone says:</p><blockquote><em>“JPA and Hibernate are the same thing, right?”</em></blockquote><p>Well…</p><p>You know what to do.</p><p>Send them this article. 😄</p><h3>Final takeaway</h3><p>The easiest way to remember everything is:</p><blockquote><strong><em>Jakarta Persistence defines the standard.</em></strong><em><br></em><strong><em>Hibernate and EclipseLink implement the standard.</em></strong></blockquote><p>Or, even shorter:</p><blockquote><strong><em>JPA tells you </em>what<em>.<br>Hibernate and EclipseLink tell you </em>how<em>.</em></strong></blockquote><p>That simple distinction explains why an application can use the Jakarta Persistence API while Hibernate or EclipseLink sits underneath it.</p><p>And once you understand that separation, the mysterious world of <strong>JPA vs Hibernate vs EclipseLink</strong> suddenly becomes a lot less mysterious.</p><p>Happy persisting! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ed46e79a988" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Liberty Transformer: Modernizing Java Binaries Without Source Code]]></title>
            <link>https://medium.com/@anijaanilkumar97/liberty-transformer-modernizing-java-binaries-without-source-code-e26986352c3b?source=rss-da209dc0ad3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e26986352c3b</guid>
            <category><![CDATA[liberty]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ibm]]></category>
            <category><![CDATA[eclipse]]></category>
            <dc:creator><![CDATA[Anija K A]]></dc:creator>
            <pubDate>Wed, 24 Sep 2025 05:16:26 GMT</pubDate>
            <atom:updated>2025-09-24T05:16:26.479Z</atom:updated>
            <content:encoded><![CDATA[<h4>What Is Liberty Transformer?</h4><p><strong>Liberty Transformer</strong> is a powerful bytecode rewriting tool used to modernize legacy Java binaries — especially in cases where source code is unavailable. It is built on top of the open-source <a href="https://github.com/eclipse/transformer">Eclipse Transformer</a>, and is particularly useful in enterprise environments like <strong>IBM WebSphere Liberty</strong>.</p><p>Whether you’re migrating from Java EE to Jakarta EE, updating deprecated APIs, or patching closed-source libraries, Liberty Transformer gives you precise, scriptable control over your Java bytecode.</p><h4>Why Use Liberty Transformer?</h4><ul><li><strong>No source code needed</strong>: Transform compiled .class files directly.</li><li><strong>Customizable rules</strong>: Define how class and package references are rewritten.</li><li><strong>Fast and scriptable</strong>: Integrates easily into CI/CD pipelines.</li><li><strong>Optimized for Liberty</strong>: Ideal for modernizing Java EE workloads running on Liberty.</li></ul><h4>How It Works</h4><p>Liberty Transformer scans .class files inside JARs or ZIPs and rewrites references based on transformation rules you define. These rules are written in a simple .properties format.</p><p>For example:</p><blockquote>Properties<br><em>rule.1.old=javax.servlet.http.HttpServlet<br>rule.1.new=jakarta.servlet.http.HttpServlet</em></blockquote><p>This rule updates all bytecode references from the javax to the jakarta namespace — a common requirement for Jakarta EE migrations.</p><h4>Getting Started</h4><p>1. Clone the Eclipse Transformer Project</p><blockquote><em>git clone </em><a href="https://github.com/eclipse/transformer.git"><em>https://github.com/eclipse/transformer.git</em></a></blockquote><p>2.Build the CLI Tool</p><blockquote><em>cd org.eclipse.transformer.cli<br>mvn clean install</em></blockquote><p>This generates a runnable JAR in the target/ folder.</p><p>3. Create a Transformation Rules File</p><p>Inside a configuration folder, create a file named transform-rules.properties:</p><p>properties</p><blockquote><em>rule.1.old=javax.*<br>rule.1.new=jakarta.*</em></blockquote><p>Then set the configuration path:</p><blockquote><em>export TRANSFORMER_CONFIG=/path/to/config</em></blockquote><p>4. Run the Transformer</p><blockquote><em>java -jar target/org.eclipse.transformer.cli-1.1.0-SNAPSHOT.jar \<br> /path/to/input.zip \<br> /path/to/output.zip</em></blockquote><p>The tool will scan your input archive, apply the transformation rules, and output a new archive with updated bytecode.</p><h3>Use Cases</h3><p><strong>Jakarta EE migration</strong> (javax.* → jakarta.*)</p><p><strong>Library/API upgrades</strong></p><p><strong>Binary patching</strong> for closed-source or third-party components</p><p><strong>WebSphere Liberty modernization</strong></p><h4>Final Thoughts</h4><p><strong>Liberty Transformer</strong> is a must-have tool for enterprise Java developers working with legacy systems. It bridges the gap between outdated binaries and modern Java standards — all without requiring access to the source code.</p><p>If you’re maintaining or migrating applications on <strong>WebSphere Liberty</strong>, <strong>OpenJPA</strong>, or any Java EE-based stack, Liberty Transformer can save you hours of manual bytecode editing or risky refactoring.</p><p><em>It’s bytecode modernization made safe, fast, and scriptable.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e26986352c3b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>