Any Dedekind domain is dimension one, but not all Dedekind domains are PID's. For instance $\mathbb{Z}[\sqrt{-5}]$ is a standard example. The ideal $(2,1+\sqrt{-5})$ is maximal and therefore prime and is not the zero ideal, so it has rank $1$, but is not principal.
Any Dedekind domain is dimension one, but not all Dedekind domains are PID's. For instance $\mathbb{Z}[\sqrt{-5}]$ is a standard example. The ideal $(2,1+\sqrt{-5})$ is maximal and therefore prime and is not the zero ideal, so it has rank $1$, but is not principal.